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
0
votes
2 answers

point CNAME Record to multiple wildcard A Records

I am trying to point my cname to my wildcard FQDN which has multiple A-Records. Dig Output: ;; QUESTION SECTION: ;access.domain.intra. IN A ;; ANSWER SECTION: access.domain.intra. 3600 IN CNAME *.sub.domain.intra. *.sub.domain.intra.…
0
votes
1 answer

DNS hard to reach after reboot RHEL7

Two weeks ago, two of our four RHEL7 VMs running on same Openstack infrastructure rebooted unprompted and unnoticed. May be externally triggered. Ever since, all services relying on DNS are unreliable on these two servers, while alright on the…
nmajoros
  • 111
  • 2
0
votes
1 answer

How to disable or fix OpenStack intercepting DNS PTR queries

I have several virtual machines with Debian/GNU Linux running on OpenStack. When resolving their internal IPv4 addresses I get some strange results: # ip -c addr show dev eth0 2: eth0: mtu 1500 qdisc pfifo_fast…
pmhahn
  • 106
  • 7
0
votes
0 answers

Gmail not detecting PTR record from vultr server

I have an SMTP server running on a vultr VM. I've set up the rDNS to point to my mail domain name mail.idimitrov.dev. The DNS setup points to that machine on ipv4 and ipv6 for mail.idimitrov.dev and it points to github pages on idimitrov.dev. When I…
0
votes
3 answers

Google Public DNS always returning NXDOMAIN for certain SLDs

Problem: Google's Public DNS returns NXDOMAIN for certain SLDs. Proof of problem: dig vpn.example.com @8.8.8.8 ; \<\<\>\> DiG 9.11.5-P4-5.1+deb10u8-Debian \<\<\>\> vpn.example.com @8.8.8.8 ; global options: +cmd ; Got answer: ;;…
0
votes
1 answer

Querying the nameserver for NS record of a domain results in a non-authoritative answer

I was wondering why name server record need to be in the zone file, because the delegation is already done by the parent zone. I came across this answer. That answer makes sense, I suppose. Then I proceeded to query the "A" record for a domain with…
0
votes
1 answer

How does one query the resolver name of a DNS server?

The Shodan search tool, for some DNS servers, shows a Resolver name value for what it finds on UDP port 53. For example, 80.82.117.140 shows Resolver name: server402.xenserve.com and 103.81.27.118 reports Resolver name: smartway-h7. I have searched…
bitinerant
  • 180
  • 5
0
votes
1 answer

Why if I run the dig command on an authoritary server I don't get an authoritary asnwer?

I ran dig debian.org ns to get a list of all authoritary servers for debian.org, and when I run dig @auth.server debian.org for some of authoritary servers I get an authorithary response and for others I don't. Why is that? I'm basing my idea of not…
0
votes
1 answer

BIND 9 DNS: NS/glue closest delegation used

I have the following example existing delegation: iio.ne.co.uk NS dns1.iio.ne.co.uk, dns1.iio.ne.co.uk HOST 1.2.3.4 If I add a new delegation: soho.iio.ne.co.uk NS sohodns.iio.co.uk, sohodns.iio.ne.co.uk HOST 1.2.3.5 and I then get a query for…
staro
  • 1
0
votes
0 answers

Oracle Linux 8 can't resolve host names using DNS

EDIT: FIXED -- My Egress Rules were blocking TCP/UDP 53. I have a stock Oracle Linux 8 server running on Oracle cloud (OCI) with Postfix installed that stopped resolving names through DNS after a reboot - it was working fine before the reboot and…
0
votes
2 answers

Why does wildcard dns entry resolve to a singular hostname?

I'm trying to update my letsencrypt wildcard certificate with certbot, but I noticed it behaved strangly when I ran the command. It said it'd add a subdomain name and remove the wildcard as follows: You are updating certificate example.org to…
nyoatype
  • 65
  • 1
  • 9
0
votes
0 answers

dig not returning answer for domain registered with namecheap?

Running dig chimu.sh Results in the following: ; <<>> DiG 9.16.1-Ubuntu <<>> chimu.sh ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 14376 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0,…
Foobar
  • 115
  • 7
0
votes
1 answer

Why does 'dig ANY' time out?

I've tried to query for 'any' records using dig, and I almost always get a timeout error. but when i google for why this is the case, there doesn't seem to be any answer at all. psmith@pop-os:~$ dig +short google.com 142.251.35.174 psmith@pop-os:~$…
Peter Smith
  • 101
  • 4
0
votes
1 answer

If I want to use dig/nslookup to query about machines in a VLAN, how can I find which name server to use?

If I want to use dig/nslookup to query about machines in e.g., 38.102.145.0/24, how can I find the name server to use that could resolve machines in that VLAN?
boardrider
  • 949
  • 2
  • 18
  • 29
0
votes
0 answers

DNS - dig query - NS not returning for sub domain from one location but does for another

I have DNS setup in x2 places and will be repointing NS shortly. Before I do that, I wanted to confirm DNS is correct at both locations. I'm using dig and passing in a file. When I query the NS of the current location, I get the DNS i'm…