Questions tagged [dig]

dig is a command-line client to make queries against DNS servers, the Internet name servers.

dig is a command-line client that allows you to make queries against DNS servers, which are servers that provide the Internet name service. While querying DNS servers is part of most Internet based applications (like web browsers, chat clients, email tools and so forth), those queries are done by the clients in the background, and without any user intervention. dig allows you to make such queries explicitly from the command-line. This is usually interesting for people that maintain DNS servers and want to test them, or network administrators that want to inspect name resolution in a particular network.

dig is part of the BIND software package, which runs on POSIX platforms, but ports to the Windows platform exist. An alternative tool is nslookup, but dig is usually preferred for its better configurability and scriptability.

This tag should be added to questions that explicitly refer to the dig tool and its workings. Related tags are dns, nslooup, domain-name and bind.

Further information:

223 questions
0
votes
1 answer

nslookup Returning Domain that is a Subdomain of some Default

I'm the owner of a hypothetical domain name, XYZ.com. I have an LXC container setup that exhibits an undesired behavior: $ nslookup non-existent-domain-12345.com Name: non-existent-domain-12345.com.XYZ.com Address: W.X.Y.Z Somewhere, I have a…
BrainCore
  • 161
  • 1
  • 3
0
votes
2 answers

dig returns ip addresses in differing order?

Pretty basic question here - when I run the command dig mx1.hotmail.com +short to get the ip addresses of one of hotmail's mail servers, they return the same list with a different order every time. I was wondering why?
khchan
  • 103
  • 1
0
votes
2 answers

Testing new nameservers using dig

I have a domain, example.co.uk, and it has its nameservers registered with the registrar as current-nameserver.co.uk. It has a TXT record with value ORIGINAL. I decide to change DNS providers to new-nameserver.co.uk. As a test, I set the TXT…
user97069
0
votes
1 answer

dig @8.8.8.8 not working

I was wondering what could be the reason that dig @8.8.8.8 stackoverflow.com fails with a ;; connection timed out; no servers could be reached error. A tracert -p 53 8.8.8.8 worked fine, I allowed the port in our firewall. How can I find out…
Zulakis
  • 4,153
  • 14
  • 48
  • 76
0
votes
2 answers

dig does not receive an answer

bind config zone "minskmag.by" { type master; file "/etc/bind/named/minskmag.by"; }; zone file $TTL 3600 @ IN SOA ns1.thestudio.by. root.thestudio.by. (2012041615 10800 3600 604800 86400) IN NS …
yltsrc
  • 3
  • 1
  • 3
0
votes
1 answer

Concise set of rules for discarding DNS responses, or portion therein

Problem statement It is possible for any name server on the internet to become "Authoritative" for legitimate, and illegitimate zones. For example, I can add microsoft.com to my internal name server. As long as I add the required records for www,…
makerofthings7
  • 8,911
  • 34
  • 121
  • 197
0
votes
3 answers

BIND result validity

I setup a local name server (BIND on OS-X) and was pleased that 'dig' response times were very short (2nd query onwards). However, if I wait a short period (5s) the response time goes up again - the request is once more being forwarded to the…
0
votes
3 answers

DIG connection times out DNS

I'm at home (COMCAST is the ISP). I can run nslookup and resolve IPs fine. When I run dig I receive "connection timed out: no servers could be reached" I'm going to fireup a network trace but wondering if anyone else has seen this. Windows 7 is…
Tom Norton
  • 19
  • 1
  • 3
0
votes
1 answer

Getting a reverse lookup answer from nslookup but not from dig

So if I use dig to do a reverse lookup I get: $ dig 71.74.56.122 ; <<>> DiG 9.6.0-APPLE-P2 <<>> 71.74.56.122 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41277 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1,…
0
votes
3 answers

A working domain without NS record. Possible?

Is it possible to have a working A record (a working website) without having a NS record? mylinux:~# dig example.com NS ; <<>> DiG 9.3.4-P1.2 <<>> example.com NS ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status:…
Henno
  • 1,056
  • 5
  • 19
  • 33
0
votes
2 answers

What does "Warning: query response not set" mean in dig output?

As the title suggests what does "Warning: query response not set" mean. I see the following in the dighost.c (line 2888 and 2889) source but still am uncertain with what in my DNS servers response would cause it. if (result == ISC_R_SUCCESS &&…
joe
  • 51
  • 1
  • 1
  • 4
0
votes
2 answers

Dig vs Whois on Nameserver Update and Reference to Unknown FQDN?

After running a dig on an old domain name moved from an old server to a new one, completely different IP and provider, I ran a dig and found that the listed nameserver does not match the one in the whois. The whois shows the new nameserver, but the…
inac
  • 519
  • 3
  • 10
  • 20
0
votes
4 answers

Using dig (or similar), how to lookup the IP of a nameserver?

If I have a nameserver with name ns1.mydomain.com, and I want to query the IP for this name, but don't want to query the authoritative name servers for mydomain.com. Can this be done with dig, or similar command line tool?
Alessandro Vernet
  • 557
  • 2
  • 4
  • 9
0
votes
2 answers

DYNDNS.org Custom DNS returning odd results with Windows' NSLOOKUP

I wrote some time back about running my own DNS server temporarily in order to help facilitate the move of a domain name between two registrars with no down-time. I have since purchased the CustomDNS package from DYNDNS and have populated the DNS…
tcv
  • 651
  • 8
  • 21
0
votes
1 answer

How to make updates to BIND9 zone files to be visible for queries?

I am using BIND 9.18 for testing purpose. I create a zone which supports dynamic DNS, and I try to use nsupdate to update the domain's resource record. After 15 minutes the update is successfully written into the original zonefile. However, when I…
dofar21
  • 3
  • 2