Questions tagged [dig]
85 questions
105
votes
3 answers
How to install dig on CentOS?
I can't find the dig command on my new CentOS installation. I've tried dnf install dig but it say that it cannot find the package.
How do I install dig on CentOS?
Mikael Dúi Bolinder
- 3,982
- 5
- 18
- 23
70
votes
2 answers
dig vs nslookup
Why do the commands dig and nslookup sometimes print different results?
~$ dig facebook.com
; <<>> DiG 9.9.2-P1 <<>> facebook.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6625
;; flags: qr rd ra;…
pylover
- 3,328
- 6
- 21
- 26
31
votes
1 answer
Is `dig ptr` a valid way to perform a reverse DNS query?
I know we can use dig -x to perform a reverse DNS query.
I have a textbook in front of me that says that both dig ptr and dig -x are valid syntax.
dig -x definitely works for me, but I'm not getting an answer with dig ptr:
~ $ dig ptr…
Juicy
- 3,685
- 11
- 31
- 44
26
votes
2 answers
How does dig find my WAN-IP-address? What is "myip.opendns.com" doing?
I needed to automatically get my own WAN-IP-address from my router. I found this question and, among others, a solution with dig was proposed:
dig +short myip.opendns.com @resolver1.opendns.com
It works perfectly, but now I want to understand what…
Beate Bier
- 363
- 1
- 3
- 5
20
votes
2 answers
how to extract just the IP address from a DNS query
On Alpine Linux, I'd like to know how to extract just the IP address from a DNS / dig query. The query I'm running looks like this:
lab-1:/var/# dig +answer smtp.mydomain.net +short
smtp.ggs.mydomain.net
10.11.11.11
I'd like to be able to get…
dot
- 685
- 5
- 11
- 22
17
votes
5 answers
Why doesn't systemd-resolved use my local DNS server?
I'm using a local BIND9 server to host some local dns records. When trying to dig for a local domain name I can't find it if I don't explicitly tell dig to use my local BIND9 server.
user@heimdal:~$ dig +short heimdal.lan.se
user@heimdal:~$ dig…
Civing
- 389
- 1
- 2
- 9
12
votes
2 answers
How to install dig on Cygwin?
I cannot find dig command on my Cygwin, nor any package name that would directly point to it. If there is a package containing it, then which one to install?
Vlastimil Burián
- 27,586
- 56
- 179
- 309
8
votes
1 answer
How do I figure out where wrong local dns results are coming from?
I'm running mint Mate 17.2.
When I use dig, for a certain specific domain name, the resolved IP "answer" is wrong, and the answer server is 127.0.0.1.
Trying to access this domain from my local computer via ssh, a web browser, etc also resolves to…
Nick
- 1,081
- 6
- 17
- 29
7
votes
2 answers
How shall I understand the output of `dig`?
How shall I understand the output of dig?
A DNS server stores a database of resource records.
Does dig return the resource records in the database of some DNS server? If yes, which DNS server's database's resource records does dig return?
For…
Tim
- 98,580
- 191
- 570
- 977
7
votes
1 answer
How to enable nameserver recursion?
On Ubuntu 14.04, when I'm performing a
dig google.de
on my machine, I get a REFUSED status (reducing to relevant lines):
me@machine:~# dig google.de
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 26926
;; flags: qr rd; QUERY: 1, ANSWER: 0,…
Gottlieb Notschnabel
- 349
- 2
- 3
- 8
6
votes
2 answers
dig / nslookup cannot resolve, but ping can
I'm experimenting with a Win10 IoT board that runs a web interface on minwinpc.local. This works fine in the browser, and also when I use ping.
However, when I use dig or nslookup, I cannot get resolve working.
How can ping and the browser possibly…
Etan
- 183
- 1
- 6
6
votes
2 answers
Why does dig -6 google.com not work for me?
Result of dig -6 google.com:
; <<>> DiG 9.8.3-P1 <<>> -6 google.com
;; global options: +cmd
;; connection timed out; no servers could be reached
What does it means if dig -4 google.com works correctly? Does it mean that my provider doesn't support…
CAMOBAP
- 220
- 2
- 9
6
votes
1 answer
dig does not resolve unqualified domain names, but nslookup does
I have a lab set up with DNS running on a CentOS7 server (dns01.local.lab). The local.lab domain is defined in named.conf:
zone "local.lab" IN {
type master;
file "local.lab.zone";
allow-update { none; };
};
I also have a reverse zone…
theillien
- 1,308
- 4
- 15
- 34
5
votes
1 answer
Going all-in on DNSSEC
I have been doing an effort to go full on DNSSEC on my system with the following setup:
dnscrypt-proxy installed, up and running on 127.0.0.1 with require_dnssec = true
systemd-resolved running, with DNSSEC=yes and DNS=127.0.0.1
only nameserver…
Bart Van Loon
- 153
- 5
5
votes
3 answers
Unable to run DNS queries when response is bigger than 512 Bytes and truncated
Situation:
Linux machine running in Azure
looking for a public domain that returns 112 results
the packet response size is 1905 bytes
Case 1:
interrogating google DNS 8.8.8.8 - it returns un-truncated response. Everything is OK.
Case…
Marin N.
- 172
- 3
- 12