Skip to Content
Browse documentation

adddns — Command Reference

Create a DNS v2 zone for an existing account and load it into BIND.

Create a DNS v2 zone for an existing account and load it into BIND.

Requirements

Run as root on the Eenos server. An existing account with the intended domain ownership, configured DNS service and correct authoritative nameservers/IPs.

Usage

The following example uses the operation described below; replace example identities and paths before use:

/usr/local/eenos/scripts/adddns --domain example.com --owner exampleuser --ip 192.0.2.10

Arguments and options

Argument / optionUsage and meaning
-d, --domainValue: DOMAIN. Required. Domain for zone creation
--ipValue: IP. IP for zone creation (default: owner's configured IP, then server shared IP)
--resellerValue: RESELLER. Use nameservers assigned to this reseller (default: owner nameservers, then server nameservers)
--ownerValue: OWNER. Required. Existing account that will own the DNS domain
--overwriteFlag. Replace an existing zone for the same owner, retaining a YAML backup
--dkim, --no-dkimFlag. Parser default: True. DKIM records (default: enabled)
--spf, --no-spfFlag. Parser default: True. SPF records (default: enabled)
--dmarc, --no-dmarcFlag. Parser default: True. DMARC records (default: enabled)

-h, --help displays this parser's help. The installed version remains authoritative for available options.

Operational effects

Writes zone YAML, registers the zone and deploys it to BIND. --overwrite replaces a zone for the same owner while retaining a YAML backup. DKIM, SPF and DMARC generation defaults to enabled, with corresponding --no-* switches.

Verify the result

Check the reported zone path, BIND load result and authoritative answers. Creating local DNS does not change registrar delegation.

Check operation output and the relevant service/application state. Several legacy wrappers exit successfully after logging a handler failure, so a zero shell exit status alone is not proof of completion.

Back to DNS Tools · All command-line tools