New Virtual Server DNS configuration

Would be grateful for some guidance. Currently running GPL.

On creation of a new Virtual Server the SOA and everything else is fine however:-

  1. the first nameserver reads as
@ IN NS ns1.mynameserver.com.

but should be

domain.com. IN NS ns1.mynameserver.com.
  1. The ns2 record does not appear at all and I would like to include this on creation
domain.com. IN NS ns2.nameserver.com.

Appreciate being put on the right track.

Regards.

Can you be a bit more precise where to do those changes. I cannot find the "Add above to auto…" is this in virtualmin or webmin?

Virtualmin >> System Settings >> Server Templates >> Your Template >> BIND DNS Domain

Regards,

Cyrus

@ IN NS ns1.mynameserver.com. is ok as a record
to put the second dns server in the zone file, edit the template you’re using and in the “BIND DNS domain” section, check “Add above to automatically generated records” and in the text box add:
@ IN NS ns2.mynameserver.com

and you’re all done.