modify-dns.pl
Change DNS settings for virtual servers
This program updates DNS-related options for one or more servers, selected using the --domain or --all-domains flags. Or you can select all domains that don't have their own private IP address with --all-nonvirt-domains.
To enable SPF for a domain, using --spf option, and to turn it off use --no-spf. By default, the SPF record will be created using the settings from the DNS section of the domain's server template.
To add allowed hostname, MX domains or IP addresses, use the --spf-add-a, --spf-add-mx and --spf-add-ip4 options respectively. Each of which must be followed by a single host, domain or IP address.
Similarly, the --spf-remove-a, --spf-remove-mx and --spf-remove-ip4 options will remove the following host, domain or IP address from the allowed list for the specified domains.
To control how SPF treats senders not in the allowed hosts list, use one of the --spf-all-disallow, --spf-all-discourage, --spf-all-neutral, --spf-all-allow or --spf-all-default parameters.
If your system is on an internal network and made available to the Internet via a router doing NAT, the IP address of a domain in DNS may be different from it's IP on the actual system. To set this, the --dns-ip flag can be given, followed by the external IP address to use. To revert to using the real IP in DNS, use --no-dns-ip instead. In both cases, the actual DNS records managed by Virtualmin will be updated.
Command Line Help
usage: modify-dns.pl [--domain name]* | [--all-domains] |
[--all-nonvirt-domains]
[--spf | --no-spf]
[--spf-add-a hostname]*
[--spf-add-mx domain]*
[--spf-add-ip4 address]*
[--spf-remove-a hostname]*
[--spf-remove-mx domain]*
[--spf-remove-ip4 address]*
[--spf-all-disallow | --spf-all-discourage |
--spf-all-neutral | --spf-all-allow |
--spf-all-default]
[--dns-ip address | --no-dns-ip]