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
3
votes
1 answer

Sendmail MX Lookup fails, dig doesnt

Anyone able to explain this problem? I can do a dig or nslookup on a host and get the MX servers, but when I check through sendmail it fails? RHEL 5.6 Sendmail: (root)> sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter…
3
votes
1 answer

Google Public DNS is returning a SERVFAIL for my domain

Hope some one will help me in resolving the issue. My Domain name is "prohosterz.com" Google Public DNS is returning a SERVFAIL for my domain: $ dig prohosterz.com @8.8.8.8 ; > DiG 9.9.2 > prohosterz.com @8.8.8.8 ;; global options: +cmd ;; Got…
user116539
  • 31
  • 1
  • 2
3
votes
1 answer

Recursive forward a zone in BIND

I have a VPS with BIND set up. It works well for several months. Recently I want to set up another DNS program to manage foo.example.org subdomain on this VPS. I've setup these in dns.he.net: foo.example.org. IN NS vps.exmaple.org. vps.example.org.…
Zhuoyun Wei
  • 380
  • 2
  • 4
  • 11
3
votes
2 answers

DIG domain NS empty when no other records exist?

I asked our domain registrar to configure the name servers for a new domain. They said it was done so I checked: dig example.com NS Using Google's servers, this is what I get: dig example.com NS ; <<>> DiG 9.7.1-P2 <<>> example.com NS ;; global…
user60129
3
votes
2 answers

Why does dig not show the authority section and how to make it show the authoritative name servers that hold the DNS query`s answer?

I started recently to learn about DNS, and I got stuck when using dig command in Linux. More exactly, I'd like to see the authoritative name servers (their names or IP addresses) that hold the answers to my DNS queries and I don't know how. As you…
3
votes
1 answer

What does OPT PSEUDOSECTION mean in `dig` response?

This is part of the response when I run dig in terminal: ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512 What does OPT mean? What does PSEUDOSECTION mean?
David Kennell
  • 255
  • 3
  • 6
2
votes
1 answer

Windows dig shows no answer section

I downloaded BIND from https://www.isc.org/download/ and installed it following https://nil.uniza.sk/how-install-dig-dns-tool-windows-7. When I run dig it does not show any answer section. For example: [C:\]dig www.google.com ; <<>> DiG 9.14.2 <<>>…
tok
  • 153
  • 5
2
votes
1 answer

DIG: always get a status: FORMERR

I'm under ubuntu 18.04, having DNS issues, so I am using dig command to debug my DNS. Thing is when I dig a site like redhat.com, or a well configured DNS of mine, I always get a FORMERR status, and it appears that SERVER is always set to…
Julien
  • 131
  • 1
  • 2
  • 7
2
votes
3 answers

How to know if reverse PTR record is correct for emailing purposes

I send emails for test@example.com with my own server. When using dig -x xxx.xxx.xxx.xxx with the IP of my server, I get: ;; QUESTION SECTION: ;xxx.xxx.xxx.xxx.in-addr.arpa. IN PTR ;; ANSWER SECTION: xxx.xxx.xxx.xxx.in-addr.arpa. 86399 IN …
Basj
  • 709
  • 3
  • 11
  • 29
2
votes
1 answer

How can I do a zone transfer with dig when using bind views

I have a bind cluster with private/public records stored in (2) views and configured with TSIG. Standard slave operation works but I'd like to use dig to transfer the zones for troubleshooting/testing. Typically I'd use dig example.com…
Jacob Evans
  • 7,886
  • 3
  • 29
  • 57
2
votes
1 answer

What's the magic incantation to force DNS queries over TCP on an Amazon/AMI image?

It looks as though the resolv.conf option use-vc is being ignored on an Amazon AMI (latest 2016.09 version). Consider the following: [hadoop@ip-172-20-40-202 ~]$ cat /etc/resolv.conf search default.svc.cluster.local svc.cluster.local cluster.local…
2
votes
2 answers

Server 2012 DNS server not resolving all forward lookup zones

Name resolution is failing for a handful of zones at only one site. It had been working fine, but stopped at one site recently. We are using DNS to restrict access to Youtube (see here) so we have a forward lookup zone www.youtube.com setup to…
2
votes
1 answer

DIG domain ns couldn't be reached

I installed Powerdns with Debian Jessie and i added NS record and other DNS records in PowerAdmin when i test the record added with dig it gives no servers could be reached, i added both name servers in my registrar and also in Powerdns SOA records…
Omer Stimpack
  • 205
  • 1
  • 3
  • 12
2
votes
1 answer

DIG returns different result from different servers

Yesterday, one of my domain names expired, so one of my websites was down. I'm well aware of dns caching, but I think there is something I miss. My website was not down everywhere (thanks to dns caching). However, the results given by, for instance,…
Noé Malzieu
  • 131
  • 1
  • 4
2
votes
1 answer

Dig Command on specific server gives different results than querying without specifying a NS

I am currently experimenting with the dig command because I am having issues with my newly registered domain. When I execute dig @dns.dns1.de overminded.de on one of my Debian servers, I am getting the following result: ; <<>> DiG…
Niklas S.
  • 167
  • 7