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
1 answer

PowerDNS authoritative name server works but non-authoritative name server servfail

In my current role as Devops I have been assigned a few tasks that are new to me including setting up a PDNS server with MySQL backend. After initial setup of the server I tested responses from the new PDNS server with DIG and NSLOOKUP while…
0
votes
1 answer

dns lookup at different dns servers

when I perform a dig lookup to look for dns record for a domain name, server A gives a non empty dns record, but server B gives nothing. why? is there a more consistent approach? server A # dig cubagob.cu ; > DiG…
user12145
  • 1,115
  • 6
  • 28
  • 47
0
votes
1 answer

dig command on linux returning differing results

Running the command dig against a particular domain, returns the previous name server details. For example; domain.com. 41068 IN NS ns1.nameserver1.com. Now if i run the command dig +nssearch host.example.com, followed by the command `dig…
Motivated
  • 155
  • 3
  • 8
0
votes
1 answer

Yum PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"

I am attempting to redo my server (CentOS release 6.6 [Final] x86_64) and I am now getting the following output on yum [root@server ~]# yum update Loaded plugins: fastestmirror, priorities, security Setting up Update Process Determining fastest…
Joshua
  • 147
  • 1
  • 2
  • 8
0
votes
0 answers

Oracle GNS (Grid Naming Service) Breaks DNS

Am running a 2-node Oracle 12.1.0.2.0 ASM Flex Cluster using Oracle GNS which I believe uses zeroconf to create it's adhoc network. Before GNS starts, DNS works, i.e. nslookup, dig, ping, ssh all work for both local network and www (e.g.…
gstanden
  • 1
  • 1
0
votes
1 answer

Why is host so much slower than dig on some queries?

When querying a particular address, dig as run against the resolvers listed in /etc/resolv.conf will return NXDOMAIN nice and quickly where host will take a while. $ dig @ 140.80.199.91.in-addr.arpa ptr ; <<>> DiG…
Merlin83b
  • 23
  • 5
0
votes
1 answer

"dig +trace fqdn" and "dig fqdn" do not give the same result on a LAN with windows DNS server, why?

in my company LAN I have a Ubuntu 14.04 server running in Virtualbox (as guest) on a Windows 7 (the host) with network interface bridged (so the Ubuntu server belongs to the LAN, with its ip: 192.168.1.85). I have a website on this server:…
0
votes
1 answer

BIND 9.8.2 not giving A record for "dig domain.xxx ANY"

I got problem with my BIND 9.8.2 setup. After configuring master zone which works fine I've noticed that I cannot get a list of all A records using the dig utility with the ANY option. Here are some examples: google.com If I try google.com I am able…
Jeval
  • 1
0
votes
1 answer

Why is the DNS on my Windows Server 2012 not authoritative according to dig?

This is me trying to understand something rather than a real problem. I have a new Windows Server 2012 Essentials. That server provides, DNS, DHCP etc. Lets say my Windows domain is my-windows-domain and the server's host name is my-server. The…
tetranz
  • 315
  • 2
  • 6
  • 14
0
votes
1 answer

DNS resolution failure when querying through server IP

I have a DNS zone file with the following config : $TTL 86400 $ORIGIN example.com. @ IN SOA ns1.example.com. dns.example.com. ( 2014022604 ; Serial 1h ; Refresh …
manu_v
  • 133
  • 1
  • 5
0
votes
1 answer

Is it needed to use local DNS cacher in EC2 / VPC?

Seems like AWS internal DNS is already a very low latency one, e.g. On ec2 dig google.com | grep "Query time" ;; Query time: 0 msec So do we really need to use another DNS cacher?
Howard
  • 2,135
  • 13
  • 48
  • 72
0
votes
1 answer

Why does dig succeed if I add an SOA query and fail when I do not?

When I do this dig I get no answer... red@localhost:~$ dig +noall +answer name-one.name-two.com @mydns-server.name-one.com ... but when add name-two.com soa I get an answer for name-one.name-two.com ... red@localhost:~$ dig +noall +answer…
Red Cricket
  • 470
  • 2
  • 8
  • 21
0
votes
1 answer

digging an IP gives me an unregistered domain name, why?

I get spam all the time (what a surprise!) and once in a while I check the IP address to see where it comes from (i.e. .cn, .cz, .pl, etc.) Today I was surprised as I found the output of dig to be: promtp# dig -x…
Alexis Wilke
  • 2,210
  • 1
  • 20
  • 37
0
votes
2 answers

Dig -x equivalent for AWS Route 53

I have an IP number associated with an AWS Elastic IP (EIP). I'd like to know, what DNS records in my Route 53 domain are associated with that A record's IP. In a traditional DNS service, I would run dig -x $EIP and get back a PTR record and be…
dmourati
  • 25,540
  • 2
  • 42
  • 72
0
votes
2 answers

Linux Terminal dig example -d

I am really having trouble making a post and this question is nowhere asked on the internet and i need to know if it is harmful so i can correct my mistake. I ran the following command in the Linux Terminal "dig example.gov -d". This started copying…