0% found this document useful (0 votes)
79 views

DNS Propagation Commandline

This document discusses how to check DNS propagation on Linux using the dnsyo command line tool. It describes how to install dnsyo, use it to query domains and check if DNS records have propagated by comparing results from over 1,800 DNS servers worldwide. Dnsyo provides options to output simple or extended results, check specific record types, and filter servers by location.

Uploaded by

nenhummail
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views

DNS Propagation Commandline

This document discusses how to check DNS propagation on Linux using the dnsyo command line tool. It describes how to install dnsyo, use it to query domains and check if DNS records have propagated by comparing results from over 1,800 DNS servers worldwide. Dnsyo provides options to output simple or extended results, check specific record types, and filter servers by location.

Uploaded by

nenhummail
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

How to check DNS propagation on Linux about:reader?url=http://xmodulo.com/check-dns...

xmodulo.com

How to check DNS propagation on


Linux
5-6 minutes

While DNS introduces human-readable naming schemes


for Internet hosts, it also brings with it extra overhead
associated with resolving names to IP addresses. For end
users, this overhead means additional DNS lookup latency
for accessing any Internet host. For service providers, this
implies the performance-critical DNS infrastructure that
needs to be maintained. Minimizing these overheads has
led to the extensive use of "caching" throughout DNS
hierarchy. For example, there are web browser/OS's built-in
DNS cache; DNS caching server of the local network; and
the cache of local DNS servers operated by service
providers, etc.

Such a deep chain of DNS caches has implication when it


comes to "updating" DNS records. Oftentimes, when you
update the DNS record of your host, the update is not
immediately visible to the world. Instead, an old DNS record
can temporarily be served from various DNS caches. Local
DNS servers typically keep each DNS entry in their cache
for up to a certain length of time, known as "time-to-live"
(TTL), which can range from minutes to a day. Thus a

1 of 7 08/06/2017 10:49
How to check DNS propagation on Linux about:reader?url=http://xmodulo.com/check-dns...

typical DNS propagation delay (i.e., time taken to see any


DNS update to propagate globally) is 24-48 hours.

If you would like to check how your DNS record propagates


on the Internet, there are various online DNS lookup
services you can try. Besides such third-party online
services, there is a way to monitor DNS propagation
natively on Linux.

Enter dnsyo.

dnsyo is a command line tool which performs DNS lookup


of your domain name from various vantage points on the
Internet. As of writing, dnsyo can query more than 1,800
open DNS resolvers belonging to 1,500 networks located in
33 countries worldwide. By comparing DNS lookup results
from these servers, you can check if and how DNS has
propagated on the Internet.

Install dnsyo on Linux

To install dnsyo on Ubuntu, Debian or Linux Mint:

$ sudo apt-get install python-pip


$ sudo pip install dnsyo --upgrade

To install dnsyo on CentOS, Fedora or RHEL:

$ sudo yum install python-pip


$ sudo pip install dnsyo --upgrade

Keep Track of DNS Propagation with dnsyo

By default, dnsyo randomly chooses 500 DNS servers (out

2 of 7 08/06/2017 10:49
How to check DNS propagation on Linux about:reader?url=http://xmodulo.com/check-dns...

of 1,800 or so servers), and performs DNS lookup from


them. Periodically, dnsyo automatically downloads and
updates a list of available DNS servers.

To check DNS lookup results of a domain name:

$ dnsyo xmodulo.com

If you moved your domain name from one IP address to


another, and the DNS record has not fully propagated
globally, you may see the domain resolved to either IP
addresses, depending on which DNS servers are used. In
the above example, all responding DNS servers report the
same IP address.

Note that many high-traffic websites employ DNS-based


load balancing, where domain name is deliberately resolved

3 of 7 08/06/2017 10:49
How to check DNS propagation on Linux about:reader?url=http://xmodulo.com/check-dns...

to a pool of IP addresses. In such cases, a domain name


will always be resolved to multiple IP addresses. Check
Twitter.com with dnsyo for example:

To get more detailed info of the DNS query (e.g., IP


address/location of each DNS server), use "--extended"
option.

$ dnsyo --extended xmodulo.com

4 of 7 08/06/2017 10:49
How to check DNS propagation on Linux about:reader?url=http://xmodulo.com/check-dns...

Using dnsyo, you can also query a specific DNS record


type. For example, to find the MX records of Google.com:

$ dnsyo google.com MX

Here is the complete command-line usage of dnsyo.

usage: dnsyo [options] domain [type]

Query lots of DNS servers and colate the


results

5 of 7 08/06/2017 10:49
How to check DNS propagation on Linux about:reader?url=http://xmodulo.com/check-dns...

positional arguments:
domain Domain to query
type Record type (A,
CNAME, MX, etc.)

optional arguments:
-h, --help show this help
message and exit
--resolvlist RESOLVLIST, -l RESOLVLIST
Location of the yaml
resolvers list to download
(http/https)
--verbose, -v Extended debug info
--simple, -s Simple output mode
(good for UNIX parsing)
--extended, -x Extended output mode
including server addresses
--threads THREADS, -t THREADS
Number of worker
threads to use
--servers SERVERS, -q SERVERS
Maximum number of
servers to query (or ALL)
--country COUNTRY, -c COUNTRY
Query servers by two
letter country code

Subscribe to Xmodulo

6 of 7 08/06/2017 10:49
How to check DNS propagation on Linux about:reader?url=http://xmodulo.com/check-dns...

Do you want to receive Linux FAQs, detailed tutorials


and tips published at Xmodulo? Enter your email address
below, and we will deliver our Linux posts straight to your
email box, for free. Delivery powered by Google
Feedburner.

Support Xmodulo

Did you find this tutorial helpful? Then please be generous


and support Xmodulo!

The following two tabs change content below.


Bio

Latest Posts

Dan Nanni is the founder and also a regular contributor of


Xmodulo.com. He is a Linux/FOSS enthusiast who loves to
get his hands dirty with his Linux box. He likes to
procrastinate when he is supposed to be busy and
productive. When he is otherwise free, he likes to watch
movies and shop for the coolest gadgets.

7 of 7 08/06/2017 10:49

You might also like