Verifying Nameserver Installation from the Command Line

Is there a way to check if my domain is configured correctly in the nameservers? Ideally I would like to run the command from the command line and also use a third party tool.

For example, I am trying to register a domain to be hosted on godaddy.com. I created a domain and can see it in my DNS list. The servers that need to be configured are ns51.domaincontrol.com and ns52.domaincontrol.com, however my registration jumps up saying "No Nameservers" was found for "my new domain".

+2


source to share


5 answers


I think this is the shortest and fastest command to list your nameservers:



host -t ns yourdomain.com

      

+15


source


If you are on a Mac or Unix computer, you can do the following from the command line:

whois site.com

By the end, it should provide you with a list of DNS servers.



You can filter the list by specifying only nameserver information with:

whois site.com | grep "Name S"

Note that www.site.com and site.com are two different endpoints and you need to set them up for both.

+14


source


Zonecheck is free software and can be run from the command line:

% zonecheck stackoverflow.com
ZONE: stackoverflow.com.
NS <=: ns51.domaincontrol.com. [216.69.185.26]
NS: ns52.domaincontrol.com. [208.109.255.26]

       _______________
     , ---------------. |
~~~~ | warning || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~
     `--------------- '
w> Nameservers are all part of the same AS
 | Adv: ZoneCheck
 | To avoid loosing all connectivity with the authoritative DNS in case
 | of a routing problem inside your Autonomous System, it is advised to
 | host the DNS on different AS.
 `----- - - - - -
 : All the nameservers are part of the same Autonomous System (AS number
 : 26496), try to have some of them hosted on another AS.
 `..... .. ... ... ...
=> generic

==> SUCCESS (but 1 warning (s))

+4


source


There is a built-in command line for this: nslookup

Submit it, then write set type=ANY

and hit enter. Then enter the domain you want and you will get what you are looking for. Alternatively, enter ?

and review additional command line parameters nslookup

.

PS: While this answer comes with a delay, I hope it is helpful to others who want to test their nameserver / DNS setup from the command line.

+2


source


nm-tool

launched from the command line will give you a lot of information, not least of which are the DNS servers you are using. You may need to install this, but many distributions are included.

0


source







All Articles