How to test google public DNS
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
- How to install and configure Domain Name Service (DNS) in ubuntu linux
- How to set up and configure Google public DNS in linux
- Best Linux Terminal Emulators
- List of free public DNS IP
- How to set up DHCP Server in linux
- How to install and configure SSH Server
- How to install Skype on ubuntu linux
- How to change the Apache HTTP port number
- Apache HTTP Server installation from source code in linux
- How to find out the open ports of linux hosts in your network
Advertisement
Follow us on Twitter
Follow us on GooglePlus
Find us on Facebook
Recent Posts
- Easy method to install Skype in CentOS 6.3, RHEL – 6.3
- Easy method to recover linux root password
- Easy method to install KDE in ubuntu 12.04
- How to disable selinux
- Change selinux to permissive
- How to check selinux status
- Get website details
- How to install nginx in ubuntu
- How to install nginx in RHEL 5
- How to install nginx in RHEL 6
- How to install nginx in centos 5
- Get linux OS details – Kernel version, distribution version, name, architecture, codename, release
- Service start, stop, restart – nginx in centos
- How to change nginx port number
- How to install nginx on centos 6
- Rsync command with ssh port number
- File creation date and time in linux
- How to install Java in ubuntu linux
- How to install Oracle Java JDK in ubuntu
- How to set password for website
- Plesk – MySQL admin login – password
- How to install and configure PHPMyAdmin from source code in CentOS / RHEL / Fedora linux
- How to find out mysql uptime
- How to backup and restore mysql database
- How to recover mysql root password
- How to connect Mobile Broadband in the ubuntu linux
- Easy method to update bootloader in linux
- Webcam software for linux
- Check memory usage in linux
- How to find out CPU utilization in linux

