Reload /etc/resolv.conf : How?

If it doesn't fit in another category, ask it here.
Post Reply
Posts: 7
Joined: 2005/10/31 18:30:55

Reload /etc/resolv.conf : How?

Post by arifsaha » 2005/10/31 19:18:07


How we can get the system (glibc/libc) to reload /etc/resolv.conf after we make change to it?

After I change /etc/resolv.conf, the command "host" and "nslookup" works fine, they can follow the new name server defined in the /etc/resolv.conf, but the command "gethostbyname" will still use the old name server in the old /etc/resolv.conf.

I tried nscd -i hosts but no effect.

BTW, I have a lot of error of dbus cannot connect to the audit system, I am not sure it there is any relation.

I just installed CentOS 4.2

Thank you!

Posts: 89
Joined: 2005/02/08 09:26:48
Location: LGW UK

Reload /etc/resolv.conf : How?

Post by osde-info » 2005/11/16 11:27:31

Have you tried ?

# service network restart

Post Reply

Return to “CentOS 4 - Miscellaneous Questions”