Skip to content

Instantly share code, notes, and snippets.

@ahupowerdns
Created January 29, 2016 21:00
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahupowerdns/38932960414f02c786f7 to your computer and use it in GitHub Desktop.
Save ahupowerdns/38932960414f02c786f7 to your computer and use it in GitHub Desktop.
# pdnsutil create-zone example.com ns1.example.com
Creating empty zone 'example.com.'
Also adding one NS record
# pdnsutil add-record example.com ns1 A 192.168.1.2
New rrset:
ns1.example.com. IN A 3600 192.168.1.2
# pdnsutil list-zone example.com
example.com. 3600 IN NS ns1.example.com.
example.com. 3600 IN SOA ns1.example.com hostmaster.example.com 1 10800 3600 604800 3600
ns1.example.com. 3600 IN A 192.168.1.2
$ dig +noall +answer ns1.example.com @127.0.0.1
ns1.example.com. 3600 IN A 192.168.1.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment