Skip to content

Instantly share code, notes, and snippets.

@ergoz
Forked from ahupowerdns/create-zone-example
Created July 18, 2024 18:03
Show Gist options
  • Save ergoz/37304e94dc334869f8b570d8d522cf7d to your computer and use it in GitHub Desktop.
Save ergoz/37304e94dc334869f8b570d8d522cf7d 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