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:

215 questions
0
votes
0 answers

dig not returning answer for domain registered with namecheap?

Running dig chimu.sh Results in the following: ; <<>> DiG 9.16.1-Ubuntu <<>> chimu.sh ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 14376 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0,…
Foobar
  • 115
  • 6
0
votes
1 answer

Why does 'dig ANY' time out?

I've tried to query for 'any' records using dig, and I almost always get a timeout error. but when i google for why this is the case, there doesn't seem to be any answer at all. psmith@pop-os:~$ dig +short google.com 142.251.35.174 psmith@pop-os:~$…
Peter Smith
  • 101
  • 4
0
votes
1 answer

If I want to use dig/nslookup to query about machines in a VLAN, how can I find which name server to use?

If I want to use dig/nslookup to query about machines in e.g., 38.102.145.0/24, how can I find the name server to use that could resolve machines in that VLAN?
boardrider
  • 889
  • 2
  • 15
  • 26
0
votes
0 answers

How to make dig to show IP addresses it is sending queries to?

By default when DNS servers do not respond dig does not show any information about the queries being sent. I can use the +qr option to see each query being sent: $ dig +qr archive.ubuntu.com ; <<>> DiG 9.16.1-Ubuntu <<>> +qr archive.ubuntu.com ;;…
0
votes
0 answers

DNS - dig query - NS not returning for sub domain from one location but does for another

I have DNS setup in x2 places and will be repointing NS shortly. Before I do that, I wanted to confirm DNS is correct at both locations. I'm using dig and passing in a file. When I query the NS of the current location, I get the DNS i'm…
0
votes
1 answer

Suddenly dig +nocmd pop3.pauperis.org aaaa +noall +answer returns nothing

the command dig +nocmd pop3.pauperis.org aaaa +noall +answer returns the followingin my laptop: pop3.pauperis.org. 3111 IN CNAME pauperis.org. pauperis.org. 3111 IN AAAA 2001:41d0:1:8ade::1 but the same command on my server,…
peris
  • 488
  • 2
  • 9
  • 25
0
votes
0 answers

Dig only able to do zone transfers when +nocookie flag is enabled

I am learning about DNS enumeration and I am working on a lab exercise at the moment. To do a zone transfer, I entered the following: dig @10.83.185.5 example.com AXFR the result is ;; global options: +cmd ; Transfer failed. However, when I add…
0
votes
1 answer

dig - get only hostnames

Could someone help me if there exists some way how to get from dig only hostnames if I want to get list of DNS zone? I work with this command: dig @dns.example.com example.com axfr output is: example1.com. 1200 IN A 1.1.1.1 example2.com. …
jozinko9
  • 3
  • 1
0
votes
1 answer

Listing all the IPs of a given domain name with dig

I wanted to check what's the full list of IPs of a given website (for instance, google.ch). Running dig consistently returns me the same IP: dig google.ch google.ch. 136 IN A 172.217.168.67 But when running an online…
0
votes
0 answers

Dnsperf dns caching

i installed dnsperf with unbound and i'm looking to cache a list of DNS records on my centos server i use dnsperf to cache a list dns [root@mail bin]# cat domains.txt facebook.com. MX google.com. MX gmail.com. MX twitter. MX dnsperf -s 8.8.8.8 -d…
Omer Stimpack
  • 205
  • 1
  • 3
  • 11
0
votes
2 answers

dig all txt records

When I run the dig command, I only get one txt record: adriano@vm ~ dig swisspass.ch txt  ✔  4501  14:25:36 ; <<>> DiG 9.11.3-1ubuntu1.13-Ubuntu <<>> swisspass.ch…
Warok
  • 155
  • 1
  • 1
  • 6
0
votes
0 answers

Is there a limit on length of CNAME chain in getaddrinfo lookup?

Update 1 I changed the nameserver in /etc/resolv.conf and that fixes the problem, but it will cause issues with internal name resolutions. So what does it mean? dig querying the same NS gets all 7 records while apps querying the same NS fails but…
0
votes
1 answer

Dig +trace doesn't display the whole delegation chain

When I trace the DNS lookup of google.com for example, dig displays only the request to the root server and then goes straight to the 2nd level domain servers, skipping the top level domain. In other words it goes from a.root-servers.net to…
0
votes
2 answers

Site not resolving uniformly

My site www.acurent.com is not resolving to its IP address 23.20.46.124 uniformly Check on: https://www.whatsmydns.net/#A/acurent.com, it shows that its resolving for certain networks only. If you refresh the page after 5-10 mins, it will show you a…
0
votes
1 answer

Understanding TTL values in DNS query answers using dig

I'm querying google.com with dig and I'm having a hard time understanding why TTL values sometimes jump around instead of decrementing every second uniformly (which is my expectation). What am I missing here? Here's what I'm doing on my Windows…