[SOLVED] Failed to resolve ip address for host

Antworten
uocxp
Beiträge: 20
Registriert: 21 Nov 2014, 09:50

[SOLVED] Failed to resolve ip address for host

Beitrag 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
Zuletzt geändert von uocxp am 24 Mär 2016, 13:45, insgesamt 1-mal geändert.
Benutzeravatar
sakbari
Beiträge: 8
Registriert: 21 Mär 2016, 12:50
Kontaktdaten:

Re: Failed to resolve ip address for host

Beitrag von sakbari »

hi

what do you get when you Execute the following command

getent hosts $(hostname -f)
uocxp
Beiträge: 20
Registriert: 21 Nov 2014, 09:50

Re: Failed to resolve ip address for host

Beitrag 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
Benutzeravatar
sakbari
Beiträge: 8
Registriert: 21 Mär 2016, 12:50
Kontaktdaten:

Re: Failed to resolve ip address for host

Beitrag von sakbari »

wat do you get when you Execute the following command

cat /etc/resolv.conf

do you use a internal dns server
uocxp
Beiträge: 20
Registriert: 21 Nov 2014, 09:50

Re: Failed to resolve ip address for host

Beitrag 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
Benutzeravatar
sakbari
Beiträge: 8
Registriert: 21 Mär 2016, 12:50
Kontaktdaten:

Re: Failed to resolve ip address for host

Beitrag 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
uocxp
Beiträge: 20
Registriert: 21 Nov 2014, 09:50

Re: Failed to resolve ip address for host

Beitrag 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 :-)
Antworten