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

DNS forward zone will not resolve new records

I have a master DNS server (BIND9, IP 172.23.129.24) configured to point a forwarding zone to another master server that is configured for DDNS services. This directive is in the /etc/named.conf file. zone "forward.example.com" { type forward; …
Topher
  • 101
  • 1
0
votes
1 answer

How to delegate DNS for sub-domain to domain with separate hosted zones

TL;DR: When the primary hosted zone contains two NS records, containing the name servers for the primary hosted zone (example.com) and the subdomain hosted zone (sub.example.com) would that be sufficient to get sub.domain.com resolved going over…
Mahoni
  • 103
  • 4
0
votes
1 answer

Server switch: Check DNS TTL values

Can somebody let me know if from the below results from using dig https://toolbox.googleapps.com/apps/dig/#ANY/ What is the correct TTL value? as I see 2 different ones: id 10958 opcode QUERY rcode NOERROR flags QR RD RA ;QUESTION mydomain.com. IN…
0
votes
1 answer

Why does this dnsmasq configuration work in one office but not another?

We have two remote offices which both use the same VOIP provider. During the sign up for this provider, they advised us to change our DNS setup so that the phones use their DNS server for VOIP calls. Both offices are using dnsmasq locally. Here is…
Kryten
  • 313
  • 1
  • 2
  • 9
0
votes
1 answer

Reverse PTR record lookup not working with dig

As mentioned here, having a Reverse PTR record is key for successful email sending and delivery from one's own server. In order to check if it's correctly set for my server, I tried: dig -x 111.111.111.111 # replace with the IP of a server but…
Basj
  • 709
  • 3
  • 11
  • 29
0
votes
3 answers

Command to Ping All a Host's NICs

We have numerous laptops here which have two adjacent DHCP reservations, one for the wired interface, and the next for the wireless. This allows simpler firewall rules by using (e.g.) /28 subnets for all NICs on all laptops in given…
0
votes
0 answers

DNS server responding OK with dig but timing out in browser

I just set up a DNS server today, and it is responding to a remote dig (Off network) with NOERROR yet my browser from the same machine it timing out: ERR_CONNECTION_TIMED_OUT ## EDIT ## I think it is worth mentioning that # curl mywebsite times out…
Zak
  • 354
  • 4
  • 17
0
votes
1 answer

how to add subdomain using route53 and godaddy

background I've already added a zone for an S3 bucket to host my static site (pointing to lobolabshq.com), now I wanted to do the same for mattermost.lobolabshq.com) I followed the instructions here and added an A record for…
abbood
  • 1,127
  • 4
  • 13
  • 21
0
votes
1 answer

dig gets answer from bind9, but host, nslookup and postfix don't

I have just upgraded my working email server from Ubuntu 14.04 to 16.04, which caused many issues. One of the issues I couldn't resolve is this: I run a caching bind9 DNS with a pretty standard configuration: named.conf.options: acl goodclients { …
mattti
  • 51
  • 1
  • 5
0
votes
1 answer

Maradns almost working, but can't get it to dig

I have setup the vanilla maradns service and almost got it working but i am missing one thing i think, plz take a look. /var/log/messages: Sep 2 06:32:13 localhost /usr/local/sbin/maradns: Filename: db.example.net Sep 2 06:32:13 localhost…
0
votes
2 answers

How to make DIG honour TTLs / use the local OS cache?

When I run dig example.com the response comes back with SERVER: 192.168.0.1, even on subsequent runs. That implies DIG is always making a network call to resolve the DNS record. I (rather ignorantly) assumed that my OS would be caching the DNS…
0
votes
2 answers

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 service uses AWS with their backend instances behind…
Aaron
  • 183
  • 3
  • 12
0
votes
1 answer

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 server: dig -t PTR…
egmackenzie
  • 101
  • 4
0
votes
1 answer

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 has address 172.30.8.24 gitlab.myorg.com is an…
Sam Hammamy
  • 189
  • 5
  • 17
0
votes
1 answer

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 I am PRUDENTIAL in US and that server is in Japan.…
nix
  • 145
  • 4