Use a Different DNS Nameserver with Dig and NslookUp

Use a different nameserver to look up dns information or check that your nameserver is acting OK  - use the public Google ones at:

8.8.8.8
8.8.4.4

For dig use it like so:

 $ dig @8.8.8.8 adomain.com 

For nslookup:

 nslookup adomain.com 8.8.8.8

For nslookup interactively:

$ nslookup
> server 8.8.8.8
Default server: 8.8.8.8
Address: 8.8.8.8#53
> bbc.com
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
Name:	bbc.com
Address: 212.58.224.138
>

Or make it the default nameservers by permanently adding it to the operating system by hard coding it in the TCP/IP dns settings, for OS X Lion 10.7 use the Network panel in System Preferences:

lion-osx-dns-nameserver-change

lion-osx-dns-nameserver-change

Related posts:

  1. Facetime there is no connected camera – OS X Lion
  2. Fastest Way of Installing Drupal 6 on Mac OS X
  3. Fastest Way of Installing Drupal 7.14 on Mac OS X 10.7 , 10.6
  4. Installing phpMyAdmin on Mac OSX 10.7 Lion & 10.6 Snow Leopard
  5. Fastest Way to install WordPress on OSX Lion 10.7 and 10.6