Using dig to Query a Specific DNS Server (Name Server)

There may be occasions when you wish to query a name server directly.  I usually do it when debugging DNS servers configuration for a domain that is experiencing difficulties.

I recommend that anyone running DNS services (in cluster mode or standalone) to looks into the following tool. It is very useful, especially when you’re debugging.

My tool of choice (available on Linux, OS X and BSD) is dig

dig has a feature which allows you to specify a name server along with the record you want to query.

For example, DNS servers for google.com are:
ns1.google.com
ns2.google.com
ns3.google.com
ns4.google.com

We may query a random NS by issuing the following command:
dig google.com

We can query a particular server directly by doing the following:
dig google.com @ns1.google.com

Feel free to open a support ticket if you would like us to perform it for you.

  • 0 användare blev hjälpta av detta svar
Hjälpte svaret dig?

Relaterade artiklar

[CentOS/RHEL/CloudLinux] rpc.statd is not running but is required for remote locking

Fixing rpc.statd is not running but is required for remote locking   If you come across this...

Installing IPSet on CentOS

CSF (ConfigServer Firewall) on a Linux system and you block a lot of IP addresses, performance...

PDFinfo

Pdfinfo is a pretty useful tool.  Pdfinfo prints the contents of the 'Info' dictionary (plus some...

[WHM/cPanel] Changing Home directory

What is the document root? When you visit a website, you are accessing a particular folder on...

[EA3] New Relic APM on cPanel & CloudLinux CageFS

Many System Administrators tried to get PHP apps hosted on a cPanel server with CloudLinux and...

Powered by WHMCompleteSolution