Testing the DNS Name Resolution

Revision as of 03:24, 25 September 2016 by Mmuehlfeld (talk | contribs) (Mmuehlfeld moved page Testing DNS Name Resolution to Testing the DNS Name Resolution without leaving a redirect: Fix title)

On Windows and *nix, you can use „nslookup“ to test if your computer can resolve records by using your DNS. Try resolving the name of your Domain Controller into its IP:

# nslookup DC1.samdom.example.com

Name:   DC1.samdom.example.com

Nslookup will show you, which server was asked ( and the result of your query (DC1.samdom.example.com has IP

To query a SVR record, you have to start nslookup and set the type to „SRV“, to retrieve the values (works on Windows and *nix):

# nslookup
Default Server:  UnKnown

> set type=SRV
> _ldap._tcp.samdom.example.com.
Server:  UnKnown

_ldap._tcp.samdom.example.com   SRV service location:
          priority       = 0
          weight         = 100
          port           = 389
          svr hostname   = dc1.samdom.example.com
samdom.example.com      nameserver = dc1.samdom.example.com
dc1.samdom.example.com  internet address = 

If your query can't be answered, because it doesn't exist, you'll receive

** server can't find DC1.samdom.example.com: NXDOMAIN

If you query a none existing DNS server, it would result in

;; connection timed out; no servers could be reached