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
-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
  • 1
  • 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
  • 45
  • 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,253
  • 2
  • 11
  • 19
-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
-2
votes
1 answer

Cached response times from Google Public DNS slow

I noticed very strange but consistent performance behavior from Google Public DNS 8.8.8.8. Even-though a DNS record was cached, the response time was in the range of 20-30ms, which seems high. When I switched over to OpenDNS, cached response times…
Justin
  • 5,328
  • 19
  • 64
  • 84
-2
votes
1 answer

dig shows SERVFAIL , while pointing at nameserver works fine

somewhat similar to this thread, I faced with a problem where dig blah.net (for the sake of simplicity let's call it blah.net) returns status: SERVFAIL This DNS zone is hosted on route53, and I use GoDaddy as registrar - which points to NS records…
Mahyar
  • 107
  • 4
-3
votes
2 answers

What is the difference of dig results between domain and www.domain

I found a domain name which gives different results for following dig commands. Lets assume the domain name is domain.com. Commands: dig domain.com dig www.domain.com Is anyone know what are the reasons for getting different results for this…
Yasiru G
  • 101
  • 3
-5
votes
2 answers

Reverse IP Lookups

When I resolve google.com I get the following ip addresses Name: google.com Addresses: 2607:f8b0:4006:80b::1006 173.194.123.6 173.194.123.0 173.194.123.8 e.t.c However when I pick an ip address from the list and perform…
Le Ray
  • 113
  • 1
  • 1
  • 3
-7
votes
1 answer

How to use dig to send DNS queries to servers of interest directly? (not through my local DNS resolver)

How can I use dig to send a dns query to servers directly? (not through local DNS resolver).
Daniel Kobe
  • 313
  • 2
  • 3
  • 8
1 2 3
14
15