Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 33 lines (25 sloc) 1.27 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
ddns-cli - syntax proposal
--------------------------

Replace all existing records of the same type with a new one
(I.e. setting an IPv4 address will not touch any IPv6 addrs
or other records like MX)
For IPv4 and IPv6 addresses try to set up reverse mapping as well
unless --no-reverse is used.
Also try to wipe the old reverse record, e.g. when changing and IP from
192.0.2.1 to 192.0.2.100 it will attempt to delete 1.2.0.192.in-addr.arpa.
unless --keep-old-reverse is used. This is also implied by --no-reverse.

[--set] [--type A] 192.0.2.1 host.example.com
[--set] [--type AAAA] 2001:dc0:1234::1 host.example.com
[--set] --type NS ns1.example.com example.com
[--set] --type MX 1 mail.example.com example.com

Add new record of a given type, do not delete the existing ones.
For IPv4 and IPv6 addresses try to set up reverse mapping as well
unless --no-reverse is used.

--add [--type A] 192.0.2.1 host.example.com
--add [--type AAAA] 2001:dc0:1234::1 host.example.com
--add --type NS ns2.example.com example.com
--add --type MX 2 mail.example.com example.com

Delete a record

--delete [--type {any,A,AAAA,MX,NS,...}] [--no-reverse] host.example.com

List all the records, optionally filter by a given type

--list [--type {A,AAAA,MX,...}] example.com
Something went wrong with that request. Please try again.