resolving dns

Stern

Senior member
Sep 3, 2004
625
0
86

hello,

I've got a home network set up to access the internet through my router(linksys befsr41) which has been working alright for a while. I recently got a macbook pro which worked fine for a week or two, set to use dhcp settings from the router, and now its stopped working.

I can use the home network fine, access files on other machines, transfer them, I can ping the router, and even the router's gateway (to the internet). I can also ping any internet ip address and it works just fine, but if I try and lookup a domain name it simply refuses to resolve it.

I've tried looking up some web DNS servers in case my ISP's wasn't working, and I can ping them fine, and use them fine from my XP machine, but they don't work from my Mac (OS X 10.4.9).

I then tried hooking up an old laptop with ubuntu on it and that also has -exactly- the same problem. Home network works, ip pings work, but name resolving doesn't work at all. I've tried bypassing the router to see if it didn't like Unix/Linux systems for some reason but a direct internet connection doesn't make a difference, same as before.

If anyone has anything at all they might know to help me it would be very much appreciated.
 

marulee

Golden Member
Oct 27, 2006
1,299
1
0
Let's flush the cache then.

In Mac OSX, you can use the command lookupd -flushcache to flush the DNS resolver cache.
bash-2.05a$ lookupd -flushcache

In Linux, the nscd daemon manages the DNS cache.

To flush the DNS cache, restart the nscd daemon.

To restart the nscd daemon, use the command `/etc/rc.d/init.d/nscd restart`.