get-dns

Output all DNS records for a domain For virtual servers with DNS enabled, this command provides an easy way to see what DNS records currently exist. The server is specified with the --domain flag, followed by a domain name. By default, output is in a human-readable table format. However, you can choose to a more easily parsed and complete format with the --multiline flag, or get a list of just record names with the --name-only option.

Output all DNS records for a domain#

For virtual servers with DNS enabled, this command provides an easy way to see what DNS records currently exist. The server is specified with the --domain flag, followed by a domain name.

By default, output is in a human-readable table format. However, you can choose to a more easily parsed and complete format with the --multiline flag, or get a list of just record names with the --name-only option.

Normally the command will output all the DNS records in the domain’s zone file, except those used for DNSSEC, but you can request to show only the DNSSEC DS records that should be created in the registrar’s zone with the --ds-records flag. Or you can choose to have DNSSEC records included in the output with --dnssec-records.

By default the command will list all records, but you can limit it to records with a specific name via the --name flag. Similarly you can limit by type (A, CNAME, MX, etc) with the --type flag.

Command line help#

virtualmin get-dns --domain name
 [--ds-records]
 [--dnssec-records]
 [--multiline | --name-only]
 [--name record-name | --regexp name-pattern]
 [--type A|AAAA|CNAME|MX|NS|TXT]

Source: https://www.virtualmin.com/docs/development/api-programs/get-dns/

  • virtualmin, domain, dns, zone, cname, command line
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Pre and Post Domain Modification Scripts

Virtualmin allows the use of custom scripts (Shell, Perl, Python and etc.) to automate tasks...

OS Support

Virtualmin runs on top of Webmin. Webmin works on almost every UNIX-like OS, so with some manual...

Professional Features

Virtualmin GPL is already an extremely powerful and flexible virtual hosting control panel, so...

How to Configure Secondary DNS

This guide provides administrators with a quick overview of setting up automatic DNS secondary...

How to Configure Cloudflare DNS

For users looking to integrate Cloudflare with Virtualmin Pro, the process is straightforward and...