In  Internet-working, the Domain Name System (DNS) plays a major role and it serves like a phone book by translating the hostname to ip address and vice versa.  For example, the domain name www.linuxinternetworks.com translates to the addresses 192.10.10.1 (IPv4) and 2620:0:2d2:200::10 (IPv6). After setup and configure the domain name service you need to test it, whether its working successfully or not. You can test the DNS in simple ways. Here i am using google public DNS, of course you can use some other public DNS address.

1. Open your terminal in super user mode ( root user )

2. Use this command:

For IPv4 users : #traceroute -n -w 2 -q 2 -m 30 8.8.8.8

If the last line of the output does not list 8.8.8.8 as the final hop, or if there are significant timeouts, there may be a network problem preventing you from contacting google servers. If the last line of the output does list 8.8.8.8 as the final hop, continue to the next step 3.

For IPv6 users : #traceroute -n -w 2 -q 2 -m 30 2001:4860:4860::8888

If the last line of the output does not list 2001:4860:4860::8888 as the final hop, or if there are significant timeouts, there may be a network problem preventing you from contacting our servers. Try configuring Google Public DNS for IPv4 to diagnose whether the problem is due to IPv6 connectivity on your network. If IPv4 works for you, you may want to revert your IPv6 configuration and use Google Public DNS with IPv4 exclusively. If the last line of the output does list 2001:4860:4860::8888 as the final hop, continue to step 3.

3. For IPv4 users:  #dig @8.8.8.8 hostname

If the output shows an answer section with an A record for the hostname, then Google Public DNS is able to resolve the name.

For IPv6 users : #dig @2001:4860:4860::8888 linuxinternetworks.com AAAA

If the output shows an answer section with an AAAA record for the hostname, then Google Public DNS is able to resolve the name.

4. Try this command too

For IPv4 users : #nslookup linuxinternetworks.com 8.8.8.8

For IPv6 users : # nslookup linuxinternetworks.com 2001:4860:4860::8888

Related articles


Subscribe Our Free Newsletter

Delivered by FeedBurner. We Respect Your Privacy

Tagged with:
 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>