Private Nameservers in Webmin
If you want to set up nameservers you need two dedicated IP addresses from ISP or hosting provider.
Assume you have registered domain name "domain.com", you have two IP addresses: 18.104.22.168 and 22.214.171.124. And your server's hostname is "server1.domain.com".
Step 1. Registering name servers.
Login to your domain name control panel (registrar) and register child name servers:
Exact way of registering child name servers depends on your registrar and can be easily found in the Internet.
Step 2. Configure BIND server
Login to your webmin panel using url:
Click on the "BIND DNS Server" under "Servers" category and select "Create master zone".
Fill the fields:
Domain name / Network: domain.com
Master server: server1.domain.com
Email address: firstname.lastname@example.org (or any email you want)
Now you are in your master zone control panel. Press "Address"
and set A Records:
ns2 domain.com. 126.96.36.199
Note that dot "." at the end of domain name is necessary.
You can also add any subdomains you need, for example: ftp.domain.com, www.domain.com, mail.domain.com etc.
Return to BIND main page with "BIND DNS Server" link at the left webmin menu.
Select "Addresses and Topology" and set the value of "Addresses" string to "any" instead of "127.0.0.1".
Select "Zone Defaults"
and set "Allow queries from.." to "default" instead of "127.0.0.1".
Step 3. Update name servers
Now go to your registrars control panel and update nameservers for your domain to ns1.domain.com and ns2.domain.com.
Note that full propagation may take up to 24 hours and you domain may be unreachable from some ISPs.