I would like to configure my own DNS server on my VPS machine. I have chosen bind.
I have founded a lot of examples of zone definitions. One of them is here:
// replace example.com with your domain name. do not forget the . after the domain name!
// Also, replace ns1 with the name of your DNS server
example.com. IN SOA ns1.example.com. admin.example.com. (
// Do not modify the following lines!
// Replace the following line as necessary:
// ns1 = DNS Server name
// mta = mail server name
// example.com = domain name
example.com. IN NS ns1.example.com.
example.com. IN MX 10 mta.example.com.
// Replace the IP address with the right IP addresses.
www IN A 192.168.0.2
mta IN A 192.168.0.3
ns1 IN A 192.168.0.1
And now my question: I have only one VPS and so I will have only one DNS Server (without secondary DNS). How should I set the value of secondary DNS server in my domain panel?
The second issue is that I do not know the full name of my server - I have the IP address only. What should I write instead of ns1.example.com?