I frequently have this problem but have a solution, at least to how it manifests on my MBP. The problem occurs for me when I work on a client site who uses DHCP for client laptops. When I go home and plug into my home LAN, the DNS servers and domain list from home router cannot override the settings from the work site which remain. The way to check this is to open network preferences, click on your network connection type (LAN or Airport) then use the advanced button. Now select the DNS tab. If the entries for dns servers and domain name appear in bold font they are probably wrongly persisted ones.
Either use a DHCP renew to clear (and/or) if that doesnt work, manually select the entries and press the minus key to remove them. Once the entries are gone try a dhcp renew and the correct values should appear in read only colour.
Also be aware that there is another issue where you may have set DNS entries in another network location, which then override your current location. Only solution there is to cycle through the Advanced / DNS tab for each location and delete incorrect entries manually before recycling DNS.
Hope that helps,
Thanks Paul. I actually resolve it by renewing DHCP too, but the problem never occurred before Snow Leopard, which makes me think that the system calls got screwed up somewhere along the way. I don't have multiple network locations, so it doesn't apply, although it's helpful to know about that being a potential problem.
Thanks for the response!
Have the same problem. 10.6.2
nslookup is able to resolve host names
ping is NOT able to resolve host names
non of the browsers are able to resolve host names
Skype will work just fine, including voice calls
Tried DHCP renew, tried putting in public DNS servers (Google), deleting them - nothing helps.
The only solution is to restart my computer, than everything works just fine.
May happen even when I close my computer for a while, open it up again, and need to restart it to connect to Internet correctly. Happens both at home (D-Link Wifi router), and at work (variety of LinkSys routers).
Never happened to me before, even on Snow Leopard, but started showing up regularly now.
Argh - sorry about that.
If nslookup can resolve addresses but Mac OS X routines cannot, the problem most likely lies in the list of DNS servers being provided either manually or via DHCP.
Whether due to a bug or design, Snow Leopard occasionally alters the order in which it will consult DNS servers if more than one is listed. This is non-intuitive and different from how BIND-based programs like nslookup work.
For example, say you specified DNS servers in this order:
BIND-based utilities like nslookup would always use 184.108.40.206 for lookups, using 220.127.116.11 only if queries to 18.104.22.168 failed.
However for whatever reason, Snow Leopard's mDNS resolver, which is responsible for all non-BIND DNS lookups, will occasionally direct all queries to 22.214.171.124. If 126.96.36.199 is configured such that it gives a NXDOMAIN response to a query 188.8.131.52 could resolve, DNS resolution will fail in the manner you've described.
Had a similar problem, and this solved it. Thanks!
. Registered domain with one registry service A, which assigned an IP address #1
. Created hosting account with another company B, which gave me a different IP address #2 (It was a big PIA to hook up the domain with the IP address; next time will get domain registration and hosting from one place)
. Transferred the domain from A to B
. Uploaded content to web site at B (from DreamWeaver, via ftp, to ftp.mydomain)
. Tried to browse new site at B; but got to old site at A
. After some hours (I understand that these DNS changes take time), browser went to site at company B, but got standard page "this domain is parked here at B" instead of my uploaded home page
. Clearing browser caches (Firefox and Safari) and restarting browsers made no difference
. Reboot made no difference
. I tried our 2 other computers, both Windows: they correctly accessed my home page at address #2
. "nslookup" resolved to correct IP address #2, but "ping" and "traceroute" pinged the old address #1!
. System Preferences > Network > Advanced > TCP/IP > "Renew DHCP Lease" fixed it: now ping and browsers go to my site on address #2.