Linux IPCONFIG /FLUSHDNS equivelant?

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
TrailerParkJawa
Sith Acolyte
Posts: 5850
Joined: 2002-07-04 11:49pm
Location: San Jose, California

Linux IPCONFIG /FLUSHDNS equivelant?

Post 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?
MEMBER of the Anti-PETA Anti-Facist LEAGUE
User avatar
Pu-239
Sith Marauder
Posts: 4727
Joined: 2002-10-21 08:44am
Location: Fake Virginia

Post 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.

ah.....the path to happiness is revision of dreams and not fulfillment... -SWPIGWANG
Sufficient Googling is indistinguishable from knowledge -somebody
Anything worth the cost of a missile, which can be located on the battlefield, will be shot at with missiles. If the US military is involved, then things, which are not worth the cost if a missile will also be shot at with missiles. -Sea Skimmer


George Bush makes freedom sound like a giant robot that breaks down a lot. -Darth Raptor
User avatar
Drooling Iguana
Sith Marauder
Posts: 4975
Joined: 2003-05-13 01:07am
Location: Sector ZZ9 Plural Z Alpha

Post 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.
Image
"Stop! No one can survive these deadly rays!"
"These deadly rays will be your death!"
- Thor and Akton, Starcrash

"Before man reaches the moon your mail will be delivered within hours from New York to California, to England, to India or to Australia by guided missiles.... We stand on the threshold of rocket mail."
- Arthur Summerfield, US Postmaster General 1953 - 1961
fnord
Jedi Knight
Posts: 950
Joined: 2005-09-18 08:09am
Location: You're not cleared for that

Post 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
User avatar
Pu-239
Sith Marauder
Posts: 4727
Joined: 2002-10-21 08:44am
Location: Fake Virginia

Post 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.

ah.....the path to happiness is revision of dreams and not fulfillment... -SWPIGWANG
Sufficient Googling is indistinguishable from knowledge -somebody
Anything worth the cost of a missile, which can be located on the battlefield, will be shot at with missiles. If the US military is involved, then things, which are not worth the cost if a missile will also be shot at with missiles. -Sea Skimmer


George Bush makes freedom sound like a giant robot that breaks down a lot. -Darth Raptor
User avatar
TrailerParkJawa
Sith Acolyte
Posts: 5850
Joined: 2002-07-04 11:49pm
Location: San Jose, California

Post 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.
MEMBER of the Anti-PETA Anti-Facist LEAGUE
Post Reply