Questions tagged [dig]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
85 votes
1 answer
91k views

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's user avatar
  • 5,518
57 votes
1 answer
134k views

If Google provides public DNS 8.8.8.8 and 8.8.4.4, who provides 4.2.2.2? [closed]

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 ...
Rudolph's user avatar
  • 2,732
37 votes
2 answers
76k views

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. ...
Doktor J's user avatar
  • 2,383
19 votes
7 answers
19k views

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. ...
BubuIIC's user avatar
  • 576
12 votes
1 answer
9k views

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's user avatar
  • 647
7 votes
1 answer
584 views

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 ...
edddd's user avatar
  • 189
7 votes
1 answer
5k views

'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 ...
Snowpoch's user avatar
  • 171
6 votes
2 answers
11k views

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 ...
comfreak's user avatar
  • 1,164
5 votes
2 answers
20k views

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 ...
madacoda's user avatar
  • 455
5 votes
2 answers
7k views

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 ...
whitenoisedb's user avatar
5 votes
2 answers
4k views

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....
u123's user avatar
  • 550
5 votes
1 answer
134 views

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<&...
CherryDT's user avatar
  • 514
3 votes
1 answer
2k views

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 ...
sbrattla's user avatar
  • 151
2 votes
1 answer
801 views

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....
user avatar
2 votes
1 answer
297 views

How can I get the separate IP address of each DNS root-servers' mirrors in the world?

I want to get the separate IP of all the root-servers’ mirrors in the world. We know every mirror has two IP addresses. One is used to support the DNS service and the other is used as its own IP which ...
Wanying Gong's user avatar
2 votes
3 answers
2k views

dnsutils deprecated, ldns has drill command but no short option

The dig command is deprecated. I'm using drill from ldns. Drill doesn't seem to have a short option to show only the ip. Does anyone know how I can make it show only the ip and not the other text.
Donny Jenkins's user avatar
2 votes
1 answer
510 views

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 ...
jcoleman's user avatar
  • 123
1 vote
4 answers
3k views

How does ping figure out the IP address of a website?

I'm trying to understand better the different network-query tools such as nc, curl, whois, dig, nslookup and at the same time a bit more about the architecture of internet requests, servers, and the ...
isomorphismes's user avatar
1 vote
2 answers
5k views

Finding out default DNS in OS X Terminal

When doing "nslookup" on a windows machine you get the address of the default DNS you're using (http://gyazo.com/313d1ad31c1927741aa266fc7f8542fc), but for some reason you don't in OS X (http://gyazo....
Axel Kennedal's user avatar
1 vote
1 answer
1k views

Dig output meaning

I have read several tutorials but none explained what does the number after the query means. youtube.com. 275 IN A 173.194.38.195 For instance, what does 275 mean? Time(ms)? EDIT(source):...
tartaruga_casco_mole's user avatar
1 vote
1 answer
2k views

Why are DNS setup guides using private IP addresses in their examples?

I'm attempting to set up BIND9 on my server, and am attempting to follow a guide I have found online. One thing that sets off a warning flag for me is that every guide I've found seems to use private ...
Julian H. Lam's user avatar
1 vote
2 answers
3k views

Ubuntu: Linux can browse sites, bash can't even resolve the dns name - Huh!

I've been work on this all day and I'm as mystified as when I started. I have an Ubuntu 10 system. On the desktop I have firefox and a bash shell running. Firefox can see and browse any site (I'm ...
drekka's user avatar
  • 216
1 vote
1 answer
21 views

Speed up bind queries by forcing cache

I have a BIND server on Debian and would like to know what are the options that could allow me to cache domain requests so that served queries are stored in RAM for a while without having to ...
user3450548's user avatar
1 vote
1 answer
205 views

Why the dig (Domain Information Groper) use the Groper? [closed]

Why the dig (Domain Information Groper) use the Groper? What' the Groper's meaning there? I queried the dictionary, it is a person name or Epinephelussp. Why in a Computer Terms the dig use the ...
qg_java_17137's user avatar
1 vote
1 answer
5k views

Why is "dig localhost" so much quicker than "nslookup localhost"?

When looking up the address for localhost, nslookup localhost takes ~15 seconds: $ /usr/bin/time nslookup localhost ;; connection timed out; no servers could be reached Command exited with non-zero ...
Roger Lipscombe's user avatar
1 vote
1 answer
686 views

Why Dig returns different results

If I use online dig tool (https://toolbox.googleapps.com/apps/dig/#A/) for google.com. it returns ;ANSWER google.com. 299 IN A 172.217.164.78 i have tried an other online tool (https://www....
Software Wisdom's user avatar
1 vote
0 answers
116 views

host and nslookup can resolve hosts, while dig and systemd-resolved return NXDOMAIN

I am trying to connect to a public WiFi. As it is common (at least in Europe), the WiFi is an open network, but after connecting for the first time, the local DNS server already resolves any domain ...
cdauth's user avatar
  • 408
1 vote
1 answer
271 views

Does Google's 8.8.8.8 nameserver not return glue records for root-servers?

I was comparing outputs of the same DNS query performed using dig against Cloudflare's 1.1.1.1 and Google's 8.8.8.8 nameservers: $> dig +trace +additional wikpedia.org @1.1.1.1 ; <<>> ...
gorgeous.george's user avatar
1 vote
1 answer
1k views

dig and nslookup results connection timeout for my subdomain.cloudns.nz using 8.8.8.8 as dns but it works for anything else or from somewhere else

when i run dig @8.8.8.8 mysub.cloudns.nz i get this : ; <<>> DiG 9.16.1-Ubuntu <<>> @8.8.8.8 mysub.cloudns.nz ; (1 server found) ;; global options: +cmd ;; connection timed ...
ben's user avatar
  • 136
1 vote
0 answers
505 views

Why does dig +trace not consistently show the same number of records?

I'm running Debian and encounter inconsistent behavior when running dig. I ran the command dig @8.8.8.8 +trace +nodnssec www.harvard.edu several times in a row, and got back different answers each ...
mike's user avatar
  • 21
1 vote
0 answers
256 views

dig sometimes return SOA sometimes A record

I have a DNS record registered that occasionally will return the A record, but most of the time returns the SOA when I use dig. This record has existed for several weeks and yet it seems to not have ...
Breedly's user avatar
  • 111
1 vote
1 answer
467 views

Can dig make a secure zone transfer(axfr) using a Transfer Auth Code (EPP)

My domain name registrar (name.com) provides a Transfer Auth Code to secure DNS zone transfers. the Transfer Auth Code is also known as AuthInfo Code, AuthInfo Code, EPP, Transfer Key, or Transfer ...
Rodrigo Estebanez's user avatar
1 vote
0 answers
144 views

Bind configuration?

When I execute dig static.acer.com I have a different answer than if I use google's DNS. With my dns server : # dig static.acer.com ; <<>> DiG 9.10.3 <<>> static.acer....
rchen's user avatar
  • 74
1 vote
0 answers
414 views

Why doesn't my DNS change propagate within the TTL?

Why isn't my DNS propagating correctly? It has a TTL of 3600 seconds, 1 hour, yet it is still resolving to an old IP. It's been at least 10 hours! http://www.onlinedig.com/go-dig/ C:\>nslookup ...
Chloe's user avatar
  • 5,946
0 votes
2 answers
935 views

Why am I receiving different A records from different DNS resolvers?

While querying www.audi.de using dig, I get the following response: Google's 8.8.8.8 DNS server is returning a different A record, what is the reason for this? Does it have anything to do with www....
Monika's user avatar
  • 105
0 votes
1 answer
35 views

WAN fails but only some sites

Home network, xfinity. I’ve had intermittent outages for the last two weeks. After some back and forth with xfinity, I bought a new cable modem. I spent an hour with support yesterday, then sent the “...
icicleking's user avatar
0 votes
1 answer
158 views

Why my web site can't be reached using my domain address?

I have created a DNS server using following files, to map my domain address sudia.com into my VPS server, but it doesn't work and I can't reach to my server using my domain address. also must say ...
user3486308's user avatar
0 votes
1 answer
57 views

Who is resolving the name?

If I do this: » dig m1.dcos ; <<>> DiG 9.10.3-P4-Ubuntu <<>> m1.dcos ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: ...
blueFast's user avatar
  • 2,716
0 votes
2 answers
251 views

Pinging external .dev tld resolve to localhost, but not with Dig

I installed puma-dev last year, forgot about it after I changed jobs. The gist is: it overwrote the dev tld to resolve locally during the entire google .dev tld ownership thing. The problem I'm having ...
FullOnFlatWhite's user avatar
0 votes
1 answer
440 views

Understanding dig @ip address

What is the role of the ip address in the first dig command? Why are the two results different? What are the values 11 and 60 showing? dig @1.1.1.1 instagram.com AAAA ; <<>> DiG 9.11....
x89's user avatar
  • 117
0 votes
1 answer
799 views

Curiosity about DNS using dig command

I am analyzing the DNS section for the website imgur.com. My doubt is that when I run "dig imgur.com" dig only returns an IP address, if I run again the same command dig returns another IP address or ...
Joeyjofer's user avatar
0 votes
1 answer
166 views

Why does dig Answer my queries differently?

I am unable to understand why there is a difference in how dig is Answering my queries in the client. I have configured the Zone file as below in DNS $ORIGIN mail.lab.example.com. $TTL 0 @ IN ...
Harshith Mulky's user avatar
0 votes
1 answer
3k views

Testing DNS truncated queries over TCP with dig

I want to test if my network supports EDNS0. It means that if the record is bigger than 512byte, the DNS will be over TCP. It will ne truncated at firts using UDP ,the it willbe over tcp. I'm using ...
Eya 's user avatar
  • 1
0 votes
2 answers
84 views

Why won't my domain records display even after several hours? [closed]

I updated my domain records to add CNAME records and a TXT record, but even after several days I cannot see them when I query the domain. Screenshot of domain records: Query results: $ dig @dns1....
Chloe's user avatar
  • 5,946
0 votes
1 answer
963 views

How to use DIG to get full DNS info?

How can I use DIG in one single command to get as much info on a domain name as possible,. including: Subdomans CNAME entries A Records TTL Is this possible with one single command? How can you use ...
rockstardev's user avatar
0 votes
2 answers
268 views

What does getting an answer from dig but not from whois imply?

So when I execute this: dig hrndva-omtalb.mail.rr.com I get this: hrndva-omtalb.mail.rr.com. 7208 IN A 71.74.56.122 hrndva-omtalb.mail.rr.com. 7208 IN A 71.74.56.123 hrndva-omtalb.mail.rr.com....
ennuikiller's user avatar
  • 1,150
0 votes
0 answers
49 views

Dig utility sometimes misses the answer packet

I just discovered that dig utility sometimes misses the answer packet from recursive resolver. I repeat the same query multiple times and from time-to-time dig utility has to resend query packet (with ...
eKrajnak's user avatar
0 votes
1 answer
1k views

How to fix periodic DNS errors when using Pihole and local Bind9 DNS

Summary of the problem: Clients on my network cannot resolve login.live.com. When running "host login.live.com" they get: $ host login.live.com ;; communications error to 10.0.0.52#53: end ...
ervingsb's user avatar
  • 362
0 votes
1 answer
971 views

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 ...
jakeprog123's user avatar
0 votes
0 answers
197 views

Why Dig, Curl and Ifconfig gives separate results?

I hit customer FTP and it gives following IP : 212.18.129.202 My production server has IP: eno16780032: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 146.213.179.131 netmask 255.255....
fatherazrael's user avatar