question on the below DNS DLZ table
from http://en.gentoo-wiki.com/wiki/Bind_with_DLZ,_MySQL_and_replication:
+-----+------------+-------+------+------+-------------+---------------+------------+-------------------+------------+--------+------+-------+--------+
| id | zone | ttl | type | host | mx_priority | data | primary_ns | resp_contact | serial |refresh |retry |expire |minimum |
+-----+------------+-------+------+------+-------------+---------------+------------+-------------------+------------+--------+------+-------+--------+
| 100 | sample.com | 86400 | SOA | @ | NULL | NULL | ns1.ns.com.| hostmaster.ns.com.| 2007080601 | 10800 | 7200 |604800 | 86400 |
| 101 | sample.com | 86400 | NS | @ | NULL | ns1.ns.com. | NULL | NULL | NULL | NULL | NULL | NULL | NULL |
| 102 | sample.com | 86400 | NS | @ | NULL | ns2.ns.com. | NULL | NULL | NULL | NULL | NULL | NULL | NULL |
| 103 | sample.com | 86400 | MX | @ | 10 | mail.mail.com.| NULL | NULL | NULL | NULL | NULL | NULL | NULL |
| 104 | sample.com | 86400 | A | @ | NULL | 123.12.12.1 | NULL | NULL | NULL | NULL | NULL | NULL | NULL |
| 105 | sample.com | 86400 | A | www | NULL | 123.12.12.1 | NULL | NULL | NULL | NULL | NULL | NULL | NULL |
+-----+------------+-------+------+------+-------------+---------------+------------+-------------------+------------+--------+------+-------+--------+
When I setup my OWN DNS-server, what exactly do I put into the SOA entry ? I mean I understand what I have to put into ttl, resp_contact, refresh, retry, expire minimum, id, zone, type and host field.
But what exactly is primary NS ? If I'm setting up a first DNS server, this would be the primary server itselfs, so ...
what I don't quite understand what i have to put into that field. I mean the primary ns would be the server that I set up, wouldn't it ?
Here is an example zone file for a domain that also hosts its own name server. The primary name server and mail server are on the same IP as the domain. Another machine hosts the secondary name server and the backup mail server. This other machine must be configured for both tasks, and you need glue records at the registrar.
The "primary nameserver" is the nameserver upon which the records for the zone are managed. Dynamic record updates, amongst other things, should go to this nameserver rather than any other authoritative nameserver for the zone.
From RFC1034: