Page 1 of 1

Linux IPCONFIG /FLUSHDNS equivelant?

Posted: 2005-10-12 10:33pm
by TrailerParkJawa
Is there an equivelent to IPCONFIG /FLUSHDNS in linux? I don't think there is but I'm not strong enough in Linux to be sure. The reason why I ask is that I was working on a Linux based system and we where having trouble connecting to a DC on win2k network. When I did a ping -c 4 domain_name it returned a DC that was no longer valid. The same thing happend on a Windows PC. So we fixed the bad entries in the DNS server and performed a flush on the windows client. That fixed the windows client but the linux machine can't be rebooted until tomorrow and I don't know if there is a flush command for linux.

Does linux cache DNS entries?

Posted: 2005-10-13 02:27am
by Pu-239
Not sure- I just run dig on the hostname that isn't working to refresh it, which seems to work for some reason.

Posted: 2005-10-13 08:30pm
by Drooling Iguana
Which distrbution are you using? In Gentoo I think running "/etc/init.d/nscd restart" as root should take care of your problem, but those scripts are in different locations on different distributions.

Posted: 2005-10-13 09:10pm
by fnord
Unsure if this may be of any assistance, but have you tried su'ing, then (assuming eth0 is the interface in question)
/sbin/ifdown eth0
/sbin/ifup eth0

Posted: 2005-10-13 09:40pm
by Pu-239
ifup/ifdown isn't available on all distros- try ifconfig down eth0, ifconfig up eth0
And nscd isn't necessarily always installed, but if it is, yeah, do what Iguana says.

Posted: 2005-10-15 05:11pm
by TrailerParkJawa
I'm working with a customer OS that my company uses for its product.
Its step child of Red Hat with a 2.4 kernel.

My customer rebooted the server and we still ended up getting incorrect DC's. However, after some more work I think we have it down to a incorrect WINS record on his side. My customer did not create this network and the previous admin didnt document anything. So we are not sure why there is a WINS entry for DC that no longer exists or even why WINS is in use for ADS domain but for now it seems like the issue didnt rest with the linux box.