Seite 1 von 1
[SOLVED] Failed to resolve ip address for host
Verfasst: 23 Mär 2016, 15:32
von uocxp
Hi All,
I updated lately the Opsi virual machine and in turn opsi-configed on the host and opsi-agent on all the clients as well.
Although i am still able to install packets on the clients however when i try to send a message or to get session information for a Client i get " Failed to resolve ip address for host 'host1.foo.com'
Can anyone help?
Best regards
Re: Failed to resolve ip address for host
Verfasst: 23 Mär 2016, 15:45
von sakbari
hi
what do you get when you Execute the following command
getent hosts $(hostname -f)
Re: Failed to resolve ip address for host
Verfasst: 23 Mär 2016, 16:29
von uocxp
I get :
host1.foo.com: command not found.
127.0.0.1 localhost.localdomain localhost
172.20.70.130 opsiserver.foo.com opsiserver
127.0.0.1 ip6-localhost ip6-loopback
Re: Failed to resolve ip address for host
Verfasst: 23 Mär 2016, 17:10
von sakbari
wat do you get when you Execute the following command
cat /etc/resolv.conf
do you use a internal dns server
Re: Failed to resolve ip address for host
Verfasst: 23 Mär 2016, 17:17
von uocxp
I get the dns server ip.
yes I'm using an internal dns server.
I didn't have this problem before updating the Opsi Server and opsi-configed
Re: Failed to resolve ip address for host
Verfasst: 24 Mär 2016, 09:45
von sakbari
HI
can you change this in etc/hosts
172.20.70.130 opsiserver.foo.com opsiserver to
172.20.70.130 foo.com foo
and give your server a reboot
Re: Failed to resolve ip address for host
Verfasst: 24 Mär 2016, 13:44
von uocxp
I did find the problem. After i updated the Server the /etc/hosts file has been likely overwritten.Since i don't use a DHCP Server i needed to reinsert the clients into the hosts file.
thanks alot @sakbari for the Help
