Setting up a nameserver for a public domain works the same way as setting up a DNS server for an internal hostname, just with a few additional parts that we'll want to make sure are in a good state.
Let's set up a nameserver for a public domain:
Set up a properly configured SOA record:
example.org. IN SOA ns1.example.org. admin.example.org. ( 2015081401 28800 3600 604800 38400 )
Set up a record for
NS
hosts:Ns1 IN A 192.168.1.1
Set up glue records:
$ORIGIN example.org IN NS ns1.example.org. Ns1 IN A 192.168.1.1