Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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