
For example, it can be an A record, MX record, SOA record or any other types.

– the name of the resource record that is to be looked up. It is optional and if you don’t provide a server argument then dig uses the name server listed in /etc/nf. If the server argument is the hostname then dig will resolve the hostname before proceeding with querying the name server. – the IP address or hostname of the name server to query. In its simplest form, the syntax of the dig utility will look like this: dig Once installed, check the version, to make sure the setup was completed successfully: dig -v Dig Syntax You can also install the utility package that contains dig separately by accessing your VPS through SSH and using the following commands in the command line:ĭebian and Ubuntu: apt-get install dnsutils

Dig is a part of DNS utility package that often gets installed with BIND name servers.
