DNS issues seemingly within OTRS [SOLVED]

Moderator: crythias

Locked
dantheman972
Znuny newbie
Posts: 16
Joined: 11 Oct 2012, 00:11
Znuny Version: 3.100
Real Name: Dan S

DNS issues seemingly within OTRS [SOLVED]

Post by dantheman972 »

EDIT: My apologies, meant to post this in "Help", if a mod could please move it.

Hello all, I have an OTRS 3.2 install on a CentOS VM. I recently migrated the VM from a host on one subnet 192.168.1.XX to another subnet 192.168.2.XX and now I'm getting errors from OTRS saying it can't resolve host names. Originally it couldn't resolve our LDAP server making it impossible to log in. To get around that, I just plugged in the LDAP's IP instead of its hostname and now it works. Now I'm getting this error when loading an agent dashboard: "Can't get file from http://otrs.org/product.xml?Product=OTRS-3.2.2: 500 Can't connect to otrs.org:80 (Bad hostname)."

So it seems like it's having issues resolving domain names on our network, as well as the internet as a whole. Funny thing is though, from within CentOS, I can do a dig and resolve the host name just fine:

Code: Select all

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.6 <<>> www.otrs.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37686
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.otrs.org.                  IN      A

;; ANSWER SECTION:
www.otrs.org.           5622    IN      A       80.190.210.170

;; Query time: 48 msec
;; SERVER: 192.168.9.48#53(192.168.9.48)
;; WHEN: Mon Feb 25 11:11:56 2013
;; MSG SIZE  rcvd: 46
Does OTRS have any DNS settings I need to change or clear? I already tried deleting the cache but no dice. Any advice is greatly appreciated.
Last edited by dantheman972 on 25 Feb 2013, 20:04, edited 1 time in total.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: DNS issues seemingly within OTRS

Post by crythias »

it would obey, for instance /etc/resolv.conf
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
dantheman972
Znuny newbie
Posts: 16
Joined: 11 Oct 2012, 00:11
Znuny Version: 3.100
Real Name: Dan S

Re: DNS issues seemingly within OTRS

Post by dantheman972 »

That appears to have done the trick, there was an entry in resolv.conf for an old DNS server on the previous subnet. After I deleted that, restarted the network interface, OTRS and deleted OTRS's cache the link loads on the dashboard. In addition I put our LDAP server's hostname back in the config file and that works now too. Guess that was more a linux issue than OTRS but your assistance is much appreciated none the less.

Thanks,
Dan
Locked