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
2
votes
2 answers

DNS queries fail from local machine running dnsmasq

I have a "sandbox" web server setup for my developers to work on. Each one has their own IP, with all the "production" hostnames configured, and a DNSmasq configuration to answer for those production names but to return their own IP, because its not…
TommyTheKid
  • 166
  • 9
2
votes
1 answer

Bind reverse ipv6 mapping, dig gives no answer, SERVFAIL

I am using Fedora 17 with Bind 9 installed, trying to configure a DNS and I already solved a problem: Bind DNS configuration, dig command don't resolve name Now ipv4 and ipv6 mapping works, also reverse ipv4 mapping works, but the problem is with…
Ramy Al Zuhouri
  • 261
  • 1
  • 4
  • 14
2
votes
1 answer

Is there a drawback to both A and AAAA records in the ADDITIONAL section?

I'm just asking for a possibility of having both ipv4 and ipv6 configurations in one domain. If I do dig , inside the ADDITIONAL SECTIONS will display the A and AAAA records. Are there any drawbacks of referring to both records for that…
foxns7
  • 123
  • 1
  • 5
2
votes
2 answers

BIND9 as a cache-only nameserver doesn't work

I installed BIND9 via apt-get on a newly installed and completely updated UBUNTU 12.04, virtualized on VirtualBox. I want to use it as a cache-only nameserver. named.conf contains only the following lines: options { directory…
JustTrying
  • 239
  • 2
  • 5
  • 11
2
votes
1 answer

DNS resolve timeout on RHEL 6.3 behind firewall

I have a server running Red Hat 6.3 Enterprise inside a VMWare virtual machine. There's a Juniper SSG 5 firewall sitting between the server and the Internet. I'm trying to diagnose what it looks like to be DNS lookup timeout but I'm afraid I don't…
Rômulo Ceccon
  • 253
  • 2
  • 8
2
votes
1 answer

NXDOMAIN Issues With .AU.COM Domain

I have registered an .au.com domain name with a domain provider here in Australia and have created successfully a Google Apps email account using the domain (Google Apps have confirmed my MX records are correct and I have received test emails from…
rs77
  • 125
  • 5
2
votes
3 answers

dig @my-server-ip mydomain.com works from inside, not from outside?

My server has 2 ips: x.x.x.73 and x.x.x.248. I can access my site via these ips, using Web browser. {Now, from a CentOS machine (not my server), using terminal} If I: dig @x.x.x.73 mydomain.com dig @x.x.x.248 mydomain.com I get the…
x4954
  • 23
  • 3
2
votes
1 answer

host dns lookup curiosity

Can anyone help me understand this :-- %)-- host brahma.mksh.net Host brahma.mksh.net not found: 3(NXDOMAIN) now when I run dig with trace.. I get the A record for brahma.mksh.net that I've assigned.. %)-- dig brahma.mksh.net +trace ; <<>>…
manish
  • 21
  • 1
2
votes
2 answers

BIND9 recursion on slave servers for a delegated zone - not working

I've been reviewing BIND/DNS documenatation and I've been unable to find a clear answer. tl;dr - querying a secondary nameserver for a delegated zone A record does not work with recusion enabled. And, by defition, doesn't work with recursion…
user56421
2
votes
2 answers

Named on AIX (5.3) - DIG won't find hosts without FQDN?

Ok I'm a newb to AIX and Named, so hopfully I'm just missing something easy. :) The goal is to just have smooth DNS lookups in this goofy Windows workgroup/AIX DNS setup (it will change eventually, but for now I'm limited in the infrastructure…
techie007
  • 1,894
  • 17
  • 25
2
votes
1 answer

How do I find the all domain names where name-server is authoritative?

is possibles query a name server and have the list of domains for which he is authoritative?
Marco Rossi
2
votes
3 answers

Problem with Domain delegation

Okey I have the subdomain news.247dist.com, if i dig any this domain i get: ; <<>> DiG 9.4.3-P3 <<>> news.247dist.com any ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36179 ;; flags: qr rd ra;…
Lockhead
  • 95
  • 3
2
votes
1 answer

detect if zone transfer with dig succeed or not via return code

I have script like this CHARSET=ASCII dig domain.com AXFR > domain.com.zone if [ "$?" = "0" ]; then echo "OK" else echo "Something went wrong" fi However, I saw there is non complete file with line at the end ;; communications error:…
Nick
  • 826
  • 2
  • 15
  • 42
2
votes
1 answer

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 ;;…
2
votes
2 answers

Why can't I reach a specific host using a specific DNS?

I'm trying to send some info to www2.agenciatributaria.gob.es. I can do it from several hosts but one. From this one I get the error Temporary failure in name resolution. However, from the same host I can reach many other servers though its default…
forvas
  • 161
  • 1
  • 9