Skip to content

Instantly share code, notes, and snippets.

@ahupowerdns
Created January 24, 2016 15:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahupowerdns/005ac3fb470f71c61e17 to your computer and use it in GitHub Desktop.
Save ahupowerdns/005ac3fb470f71c61e17 to your computer and use it in GitHub Desktop.
$ pdnsutil create-zone ds9a.nl ns1.powerdns.com
Creating empty zone 'ds9a.nl.'
Also adding one NS record

$ pdnsutil add-record ds9a.nl @ A 1.2.3.4
$ pdnsutil add-record ds9a.nl "*" CNAME ds9a.nl
$ pdnsutil list-zone ds9a.nl
*.ds9a.nl.      3600    IN      CNAME   ds9a.nl.
ds9a.nl.        3600    IN      A       1.2.3.4 
ds9a.nl.        3600    IN      SOA     ns1.powerdns.com hostmaster.ds9a.nl 1 10800 3600 604800 3600
$ pdnsutil replace-rrset ds9a.nl @ A 3.3.3.3 4.4.4.4
$ pdnsutil list-zone ds9a.nl
*.ds9a.nl.      3600    IN      CNAME   ds9a.nl.
ds9a.nl.        3600    IN      A       3.3.3.3 
ds9a.nl.        3600    IN      A       4.4.4.4 
ds9a.nl.        3600    IN      SOA     ns1.powerdns.com hostmaster.ds9a.nl 1 10800 3600 604800 3600

$ pdnsutil add-record ds9a.nl @ AAAA :::1
Error: Parsing record content (try 'pdnsutil check-zone'): while parsing IPv6 address: ':::1' is invalid
$ pdnsutil add-record ds9a.nl @ AAAA ::1

$ pdnsutil list-zone ds9a.nl
*.ds9a.nl.      3600    IN      CNAME   ds9a.nl.
ds9a.nl.        3600    IN      AAAA    ::1
ds9a.nl.        3600    IN      SOA     ns1.powerdns.com hostmaster.ds9a.nl 1 10800 3600 604800 3600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment