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

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,070
  • 5
  • 24
  • 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
  • 6
-1
votes
5 answers

How long it takes for domain registrar to update TLD name servers

We accidentally changed the nameserver settings for our example.be. The changes were rolled back within minutes. So nameservers were set to the previous ones, provided by One.com. After 16 hours, our website still not working. But are worried that…
nickbusted
  • 107
  • 5
-1
votes
2 answers

dns dig - no ANSWER unless ANY option set

So wired issue. Ubuntu 16.04 - I receive no ANSWER of the dig command (for specific domain), unless ANY is set in the dig command Of course regular dns queries does not work too :/ ; <<>> DiG 9.10.3-P4-Ubuntu <<>> @8.8.8.8 stg-test102.example.net…
sirkubax
  • 121
  • 1
  • 7
-1
votes
1 answer

Backup DNS servers for a domain name - optimal configuration and troublehooting

Let's say we have these name servers for 1 domain. ns.1.com ns.2.com ns.3.com ns.4.com backup-ns.1.com backup-ns.2.com How can I know which NS responded to this specific query, for example using dig? Taking into account DNS cache. In a normal NS…
-1
votes
1 answer

Google DNS returns SERVFAIL for domain

Hope someone can help I know the basics of DNS setup, am having an issue with my hosting company. Have several domains hosted, DNS settings are basically setup by the hosting company using their nameservers. There is this one domain that was setup…
paul
  • 35
  • 1
  • 7
-1
votes
2 answers

TTL in ping vs dig

When I ran ping google.com, I get a ttl value of 55: 64 bytes from 173.194.127.103: icmp_seq=68 ttl=55 time=16.4 ms When I ran dig google.com @ns1.google.com., it get a TTL value of 300. google.com. 300 IN A 173.194.127.34 Why do I get two…
dayuloli
  • 1,223
  • 1
  • 10
  • 18
-1
votes
2 answers

Setting up my own nameserver on Freedom domain

I need to configure a DNS on a new domain registered on freenom.com as follows Domain: mydomain.ga My Server IP: 1.2.3.4 My need is to ask mydomain.ga (1.2.3.4) for a specific subdomain (for example abc.mydomain.ga) For example, using the command…
Ryuk
  • 1
  • 2
-2
votes
1 answer

Intermittent DNS failures

We have intermittent DNS failures. Upon troubleshooting we found from our server, (where the domain is pointed to) gives connection timeout when queried against few TLD ns. Ex: dig domain @tldns (Connection timed out;; no servers can be…
-2
votes
2 answers

Can I get all the virtual IP addresses given the CNAME

Is there a way to find all the aliases of the host? $ nslookup x x is an alias for y y is an alias for z z has address 192.0.2.45 So if I have z, is there a way of using nslookup/host/dig commands to get x and y too?
ak07_
  • 1
  • 1
1 2 3
14
15