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

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
  • 508
  • 2
  • 9
  • 27
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
  • 12
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
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…
0
votes
0 answers

How to lookup DNS Record in specific zone

For example I have a zone example.com and someone created a dotted hostname app.subzone which resolves to app.subzone.example.com in it. Now I create a new zone subzone.example.com and an record appin it. At this point I can no longer query the…
0
votes
1 answer

avahi-resolve resolves hostname that dig -p 5353 @224.0.0.251 does not?

I thought avahi-resolve and dig -p 5353 @224.0.0.251 did much the same thing. However, I have a device where I can resolve its name using avahi-resolve but not using dig: $ avahi-resolve --name ding-5cd80b3.local ding-5cd80b3.local 192.168.0.248 $…
0
votes
1 answer

Command line dig tool doesn't get answer for SOA query, while https://toolbox.googleapps.com/apps/dig/#SOA/ DOES

While running in my windows 10 64bits machine this command: dig gmail-smtp-in.l.google.com ANY I get this response ; <<>> DiG 9.16.2 <<>> gmail-smtp-in.l.google.com ANY ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status:…
0
votes
1 answer

Rate-limiting of dig

I have a PHP script that calls the bash dig command through the exec function on Ubuntu to monitor hundreds of domains. What the script does is to call dig to fetch some DNS records on each domain for analysis. This script is run by a cron job every…
shoorlyne
  • 55
  • 4
0
votes
1 answer

ping resolves hostname but dig does not

I'm attempting to set up FreeIPA on a Centos KVM guest and one of the prerequisites is to make sure static hostname is set and that the hostname resolves to guest's IP address. My /etc/hosts file is as follows: 27.0.0.1 localhost…
-1
votes
1 answer

Official BIND9 Windows binaries - host.exe, dig.exe - don't do anything

I have downloaded the official BIND 9 Windows binaries from ISC. They don't do anything: $ .\host.exe google.com $ (no output) Same with dig. How do I make host, dig etc work on Windows?
mikemaccana
  • 3,370
  • 5
  • 25
  • 29
-1
votes
2 answers

Dig DNS vs Whois

I have a client that has their name services done through some third part. The domain was registered through Godaddy (yet a different third party). The name service provider had their domain names hijacked (don't know how) so the name servers my…
terary
  • 99
  • 1
  • 6
1 2 3
14
15