dig is a command-line client to make queries against DNS servers, the Internet name servers.

learn more… | top users | synonyms

0
votes
2answers
14 views

Obtain instance IPs behind ELB in order to add to iptables

What: We're using iptables and have our server rather locked down to only specific ports and IPs. Recently we have a requirement to open traffic to a third party service. However, the third party ...
42
votes
3answers
28k views

Force dig to resolve without using cache

I'm wondering if there is a way to query a DNS server and bypass caching (with dig). Often I change a zone on the DNS server and I want to check if it resolves correctly from my workstation. But since ...
-1
votes
1answer
38 views

Backup DNS servers for a domain name - optimal configuration and troublehooting

Let's say we have these name servers for 1 domain. ns.1.com ns.2.com ns.3.com ns.4.com backup-ns.1.com backup-ns.2.com How can I know which NS responded to this specific query, for example using ...
3
votes
3answers
2k views

Combining dig +short command

This command will show the output of MX record: dig @ns1.myname.com myname.com +short MX and this will output A record: dig @ns1.myname.com myname.com +short A My question is how to output both ...
1
vote
2answers
37 views

How to return only empty or “problematic” DNS records for bulk queries

When doing a bulk input of records, I want to verify that I put each in its correct location by doing a bulk query with dig. Dig will spit out all positive results with: dig +noall +answer or dig +...
-7
votes
1answer
34 views

How to use dig to send DNS queries to servers of interest directly? (not through my local DNS resolver) [closed]

How can I use dig to send a dns query to servers directly? (not through local DNS resolver).
0
votes
1answer
43 views

Performing DNS queries starting with one of the root servers using dig command [closed]

I am having trouble understanding the question for my network assignment. The question states: Discover the sequence of DNS servers your local DNS server with empty cache goes through when it ...
1
vote
0answers
29 views

In a BIND.. Weird DNS issue

I have now somehow replicated a weird issue with one of my DNS zones on two different servers and with two different versions of ISC BIND. I have a sub-domain delegated to my server. The first time ...
0
votes
2answers
525 views

What does “Warning: query response not set” mean in dig output?

As the title suggests what does "Warning: query response not set" mean. I see the following in the dighost.c (line 2888 and 2889) source but still am uncertain with what in my DNS servers response ...
0
votes
2answers
2k views

dig does not receive an answer

bind config zone "minskmag.by" { type master; file "/etc/bind/named/minskmag.by"; }; zone file $TTL 3600 @ IN SOA ns1.thestudio.by. root.thestudio.by. (2012041615 10800 ...
0
votes
0answers
23 views

Virtual Machine Dig Connection timed no servers could be reached

I have been following this tutorial on how to set up a DNS and DCHP server but am running into some errors which my client. I am trying to set this up on a virtual machine. I am trying to test the ...
-1
votes
1answer
84 views

DIG returns different result from different servers [closed]

Yesterday, one of my domain names expired, so one of my websites was down. I'm well aware of dns caching, but I think there is something I miss. My website was not down everywhere (thanks to dns ...
-1
votes
2answers
75 views

How to find what Authoritative Name Server provided the answer using dig?

I need to check the differences in records on master and slave when making changes. Is there some option for dig to show which Authoritative Name Server provided the answer? for example dig example....
-1
votes
1answer
153 views

Google DNS returns SERVFAIL for domain [duplicate]

Hope someone can help I know the basics of DNS setup, am having an issue with my hosting company. Have several domains hosted, DNS settings are basically setup by the hosting company using their ...
24
votes
2answers
10k views

Is dig +trace always accurate?

When the accuracy of a DNS cache is in question, dig +trace tends to be the recommended way of determining the authoritative answer for an internet facing DNS record. This seems to be particularly ...
2
votes
1answer
72 views

What are all the flags in a dig response?

dig responses return flags in the comments section: $ dig example.com +noall +comments ; <<>> DiG 9.8.3-P1 <<>> example.com +noall +comments ;; global options: +cmd ;; Got ...
3
votes
2answers
3k views

Named on AIX (5.3) - DIG won't find hosts without FQDN?

Ok I'm a newb to AIX and Named, so hopfully I'm just missing something easy. :) The goal is to just have smooth DNS lookups in this goofy Windows workgroup/AIX DNS setup (it will change eventually, ...
8
votes
2answers
30k views

sed replace all tabs and spaces with a single space

I got a string like the following: test.de. 1547 IN SOA ns1.test.de. dnsmaster.test.de. 2012090701 900 1000 6000 600 now I want to replace all the tabs/spaces inbetween the ...
81
votes
6answers
164k views

List all DNS records in a domain using dig?

My company runs an internal DNS for mycompany.com There is a machine on the network that I need to find, but I’ve forgotten its name. If I could see a list, it would probably jog my memory. How ...
0
votes
1answer
94 views

DNS-SD only discovering services correctly after dig -t any

I have several DNS servers configured for DNS-SD. I am able to register services without issue, however when I try to browse I get errors. I have been testing using dig: Browsing a local or remote ...
67
votes
4answers
97k views

How can I see Time-To-Live (TTL) for a DNS record?

I would like to see the Time-To-Live (TTL) value for a CNAME record. I have access to dig (on Apple Mac OS X), which gives me an answer like this: % dig host.example.gov <*SNIP*> ;; ANSWER ...
-5
votes
2answers
72 views

Reverse IP Lookups [closed]

When I resolve google.com I get the following ip addresses Name: google.com Addresses: 2607:f8b0:4006:80b::1006 173.194.123.6 173.194.123.0 173.194.123.8 e.t.c However ...
3
votes
0answers
142 views

Why does dig +trace seem to ignore the DNS glue records?

Here are my questions: Why does dig +trace ignore the Glue Records? Is this behavior specific to dig or dig +trace, or does a recursive name server also "manually verify" glue records it receives? ...
6
votes
1answer
4k views

Dig timeout option don't work

When I try either of these commands they do not stop after 5 seconds: $ dig +time=5 @hii.com hello.me -or- $ dig @hii.com hello.me +time=5 What is the correct way to use this option?
0
votes
1answer
135 views

Host command returns two different IP addresses when run sequentially

Here's an interesting problem: ~ $ host gitlab.myorg.com gitlab.myorg.com is an alias for aln7git01.myorg.com. aln7git01.myorg.com has address 172.30.9.197 ~ $ host gitlab.myorg.com gitlab.myorg.com ...
1
vote
3answers
463 views

What is the best way to get PRECISE domain name from ip address logged in iptables log

In iptables I am logging certain public IP addresses... say of websites visited from different workstations, depending on destination port number... All this is not really relevant to the question but ...
0
votes
3answers
1k views

Simple dig output?

In a script I want to be able to write an IP address to somewhere easily, so I thought using dig (or a similar command) with back-ticks. However the simplest output I've been able to come up to wrt ...
0
votes
1answer
245 views

How would get an email server reputation via cli or script?

I am trying to monitor email server reputation via cli or script i.e. https://www.senderbase.org/ I found a way supposedly to do it via dig, but the output appears to be very incorrect. It indicates ...
0
votes
1answer
283 views

Using 'Dig' to zone transfer but gets a 'timed out connection'

i am corrently trying to test a zone transfer via dig (9.8.4) with the following command: dig axfr @ns.server.com domainname.com and i get the following error:(notice its not a declined zone ...
0
votes
1answer
630 views

DNS setup with BIND [closed]

I've recently made a server (it's a VPS hosted on a2hosting) by following these instructions: http://www.howtoforge.com/perfect-server-centos-6.0-x86_64-ispconfig-3 All is working well, except for ...
0
votes
1answer
461 views

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 ...
2
votes
2answers
949 views

Domain Name Forwarding not working with github pages

I had my blog on github pages with a custom domain name blog.tamizhvendan.in and today I've moved it to a new domain name www.p3programmer.com by updating the CNAME record with www.p3programmer.com. ...
0
votes
1answer
116 views

Where does dig additional section nameserver information come from? [duplicate]

I have a client whose website has intermittent issues, which I believe are due to DNS lookup. When this happens and they do a ping, the host cannot be resolved. Therefore, I ran: dig @a.gtld-...
0
votes
1answer
48 views

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 ...
2
votes
1answer
618 views

Dig Command on specific server gives different results than querying without specifying a NS

I am currently experimenting with the dig command because I am having issues with my newly registered domain. When I execute dig @dns.dns1.de overminded.de on one of my Debian servers, I am getting ...
2
votes
1answer
242 views

Cannot find solution to “One or more of your nameservers did not return any of your NS records.” on intoDNS site

I have set up DNS on my Linux Centos server and when I test on this site I get the following errors: WARNING: One or more of your nameservers did not return any of your NS records. ERROR: ...
0
votes
1answer
207 views

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 +...
3
votes
1answer
188 views

Why does TTL sometimes re-increment between DNS queries?

I dig xkcd.com, and I get something like this back: ; <<>> DiG 9.9.5-3ubuntu0.1-Ubuntu <<>> xkcd.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: ...
0
votes
1answer
529 views

TTL and Google DNS

I've found a similar post about this, however my user can't comment. I wonder why doing dig @8.8.8.8 domain.com prints out different "countdowns" when running it several times in few seconds, as if ...
0
votes
1answer
2k views

dig succeeds, nslookup fails (with dnsmasq as the server)

I installed dnsmasq on a machine of mine (It's a Kubuntu 12.04 LTS), backed only by /etc/hosts (no connection to the Internet until later). Now, if I dig mymachine, I get 192.168.0.1, but if I try to ...
-3
votes
2answers
338 views

TTL in ping vs dig

When I ran ping google.com, I get a ttl value of 55: 64 bytes from 173.194.127.103: icmp_seq=68 ttl=55 time=16.4 ms When I ran dig google.com @ns1.google.com., it get a TTL value of 300. google....
17
votes
2answers
2k views

DNS Server Responses and Timeouts

We're experiencing a frustrating problem on our LAN. Periodically, DNS queries to our ISP nameservers timeout forcing a 5 second delay. Even if I bypass /etc/resolv.conf by using a direct dig to one ...
0
votes
0answers
200 views

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 ...
3
votes
2answers
2k views

bind not able to query some servers / domains

We have been experiencing problems with our company's DNS server when trying to resolve only certain domains, we are running BIND 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6 on a CentOS 6.5 server. We are ...
0
votes
1answer
24k views

Yum PYCURL ERROR 6 - “Couldn't resolve host 'mirrorlist.centos.org'” [closed]

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 ...
0
votes
1answer
131 views

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 @<resolver> 140.80.199....
0
votes
1answer
439 views

DNS queries fail from local machine running dnsmasq

I have a "sandbox" web server setup for my developers to work on. Each one has their own IP, with all the "production" hostnames configured, and a DNSmasq configuration to answer for those production ...
4
votes
3answers
3k views

able to dig a hostname but doesn't resolve via ssh or ping

I am using Snow Leopard and cannot ping or ssh into a host but am able to dig: dig some.value.host.com When the ip address comes back in the answer section, then I am able to ssh via ip address ( ...
0
votes
1answer
734 views

Is there a drawback to both A and AAAA records in the ADDITIONAL section?

I'm just asking for a possibility of having both ipv4 and ipv6 configurations in one domain. If I do dig <domain>, inside the ADDITIONAL SECTIONS will display the A and AAAA records. Are there ...
-1
votes
1answer
325 views

“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....