Questions tagged [dig]
68 questions
91
votes
1 answer
Installing dig on Debian
I've tried installing dig on Debian, but the apt-get utility doesn't seem to know what it is.
Is it part of some larger set of packages? Where can I find this?
KdgDev
- 5,758
58
votes
1 answer
If Google provides public DNS 8.8.8.8 and 8.8.4.4, who provides 4.2.2.2?
In the past I was always told by colleagues 4.2.2.2 appears to work faster and have to combine that with Google's public DNS*. Using 8.8.8.8 as primary and 4.2.2.2 as secondary. However, Google only provides 8.8.8.8 and 8.8.4.4, so who provides…
Rudolph
- 2,772
42
votes
2 answers
How does dig +trace actually work?
When I look at the man page for dig, I get the following:
+[no]trace
Toggle tracing of the delegation path from the root name servers for the name
being looked up. Tracing is disabled by default. When tracing is enabled, dig
makes iterative…
Doktor J
- 2,433
20
votes
6 answers
Is it possible to find out which upstream DNS server my router is querying? (just using dns tools)
Ok, here is the setup:
I have a local router which advertises itself as the DNS server over DHCP. The DNS resolver on the router just forwards the requests to the ISP nameservers and caches the reply.
Now is it possible to find out the ISP…
BubuIIC
- 586
12
votes
1 answer
Install dig on Ubuntu 14.04
How can I install "dig" on Ubuntu 14.04 minimal ?
I tried:
apt-get install dig
It didn't work. Seems its in some different package included but I don't know which one.
chubbyk
- 657
10
votes
2 answers
How to force TCP packets for testing DNS?
DNS uses UDP packets normally. However when the response is larger than a certain size, it switches to TCP.
It would be very useful if we can specify TCP/UDP when running DNS query commands with DIG or NSLOOKUP for example.
Is there a way to do…
madacoda
- 541
- 1
- 3
- 13
8
votes
2 answers
How to get latest version of DiG?
After wanting to check some DNS records, I realized that my current version (9.8.3-P1) of DiG, that shipped with Mac OS X (El Capitan 10.11.6), does not support the RR type I need.
So now I am looking to get an up-to-date version that I can run on…
comfreak
- 1,253
7
votes
1 answer
'dig any' results wrong, missing data
I was playing about with 'dig' showing a friend how it worked when I spotted some odd behaviour with the 'any' type.
I believe that using 'dig any' will get all the record types automatically but that doesn't seem to be happening for some…
Snowpoch
- 171
7
votes
1 answer
Why are rDNS query responses not always an inverse of DNS query responses?
Consider the following run of the dig command, where I simply query for the IP address of google.com:
$ dig google.com
; <<>> DiG 9.16.1-Ubuntu <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR,…
edddd
- 189
- 4
5
votes
2 answers
TTL when querying for any record with dig
This question comes from this topic. When I do this I get the remaining seconds until the A record expires in the queried nameserver:
dig stackexchange.com
However, if I do this I get the authorative TTLs values:
dig any stackexchange.com
So, I…
whitenoisedb
- 307
5
votes
2 answers
NSlookup and linux Dig
On linux I can list all entries in the DNS table ending with "80" using:
dig axfr my.domain | grep 80
How do I do that with NSlookup on windows? I have tried starting NSlookup and typing
ls my.domain
Which gives me the full list. But how do I…
u123
- 560
5
votes
1 answer
What does "dig ." actually query and where are those IPs coming from?
Out of curiosity, I entered dig . today. To my surprise, I got an IP:
$ dig .
; <<>> DiG 9.10.3-P4-Ubuntu <<>> .
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45964
;; flags: qr rd ra ad; QUERY: 1,…
CherryDT
- 534
3
votes
1 answer
Why do i get "Got bad packet : FORMERR" from dig?
The first time I run a DNS query such as dig google.com, I get a nice answer. However, subsequent queries returns
;; Got bad packet: FORMERR
55 bytes
25 d8 81 a0 00 01 00 01 00 00 00 01 06 67 6f 6f %............goo
67 6c 65 03 63 6f 6d 00…
sbrattla
- 151
2
votes
1 answer
DIG Unpredictable TTL in DNS
I have discovered that the TTL field in an answer can vary significantly (and often increase) between subsequent queries to the same domain name (and same resolving DNS server).
$ dig stackexchange.com
; <<>> DiG 9.9.5-4.3ubuntu0.2-Ubuntu <<>>…
user376151
2
votes
1 answer
Mavericks: ping resolves differently from dig
I have BIND9 running on my MBP with a zone for the TLD dev. I then have /etc/resolver/dev setup with the line nameserver 127.0.0.1 so that resolution for that TLD only is performed using my local BIND server.
If I ping an entry in the zone file for…
jcoleman
- 123