Page 1 of 1

Reload /etc/resolv.conf : How?

Posted: 2005/10/31 19:18:07
by arifsaha

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!

Reload /etc/resolv.conf : How?

Posted: 2005/11/16 11:27:31
by osde-info
Have you tried ?

# service network restart