Skip navigation

Access by IP address but not URL?

1056 Views 9 Replies Latest reply: Mar 7, 2012 5:38 AM by fane_j RSS
James Knight3 Level 1 Level 1 (15 points)
Currently Being Moderated
Nov 14, 2011 4:26 AM

One laptop on our network exhibits strange behaviour occasionally. It will be working fine, then will suddenly lose the ability to access a website or any other server by its domain name.

 

Using Network Utility to lookup the address, the DNS responds with all the correct information. And in Terminal, nslookup and dig both correctly resolve the domain name to the IP address.

 

However no other application seems able to use this information. Safari, Mail, Software Update all fail to connect to the requested servers.

 

Mac OS X 10.6.8, MacBook Pro 2.66 Ghz Intel Core i7

 

Hope someone can assist

 

Cheers

 

James

  • X423424X Level 6 Level 6 (14,190 points)
    Currently Being Moderated
    Nov 14, 2011 11:24 AM (in response to James Knight3)

    Try using different DNSs.  Two are OpenDNS (208.67.222.222, 208.67.220.220) and Google DNS (8.8.8.8, 8.8.4.4).

  • Camelot Level 8 Level 8 (45,670 points)
    Currently Being Moderated
    Nov 28, 2011 10:29 AM (in response to James Knight3)

    Check /etc/hosts

     

    You can override normal lookups by setting a hostname in /etc/hosts to give it a different IP address.


    Safari (and just about every other application) will use the system resolver to resolve the hostname, and that first checks /etc/hosts to see if an entry exists. If it does, it uses that address rather than whatever DNS would say.

    However, dig specifically queries the name server, so will return whatever DNS says, completely ignoring /etc/hosts and any caches.

  • varjak paw Level 10 Level 10 (167,195 points)
    Currently Being Moderated
    Nov 28, 2011 11:46 AM (in response to James Knight3)

    Try:

     

    dscacheutil -flushcache

     

    Hope that helps.

  • fane_j Level 4 Level 4 (3,655 points)
    Currently Being Moderated
    Mar 7, 2012 5:38 AM (in response to James Knight3)

    James Knight3 wrote:

     

    does anyone have any more ideas on this?

    Create a new user account on the same machine and test it. At least it will give you an idea on where to look for the trouble. If Safari and Mail don't display the same issue in the new user account, then the problem must be somewhere in the other account's Home folder.

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.