Hello,
I'm having few website that I am currently hosting on shared host server, however I have decided to get cloud VPS and host all my website on it.
Here's what I have done so far:
1- installed Ubuntu server 15.10 64-bit
2- Installed Apache server
3- Installed MYSQL server
4- Installed webmin control panel
Webwin Control Panel Side:
I have installed Bind DNS server and Created "Virtual Host" and "Master Zone" for each domain.
Domain Registrar Side:
Normally I would login and change Nameservers under "domain management section"
Example:
let's say my domain registrar is godaddy for domain name: domain_name.com and my hosting company for example is hostcompany101
I will need to change Nameservers to ns1.hostcompany.com and ns2.hostcompany.com
After doing the above Nameserver changes I should be able to have full control over the domain records from hostcomapny101 Cpanel and I can change all DNS records and everything will work nice and smooth.
Problem I'm facing with VPS is to do with Nameserver:
I have configured one of my domain names to be the server domain. e.g. server1.com and I have created my own Nameserver ns1.server1.com and ns2.server1.com using webmin control panel.
Now to get my SERVER domain to work, I needed to login to my domain registrar and ADD DNS A records to point to my VPS IP address. But before I used to just change namerserver, that is understandable as this is the main server domain name.
Next step, I wanted to host all my other domains on my VPS via webmin, as mentioned earlier that I have Created "Virtual Host" and "Master Zone" for each domain.
After doing so, I logged to domain registrar for each domain and I have edited each domain Nameserver from (ns1.hostcompany.com and ns2.hostcompany.com) to (ns1.server1.com and ns2.server1.com) as I always did. As (ns1.server1.com and ns2.server1.com) are my current Nameservers for my VPS where I want all my domains to point to.
Issue:
After changing nameservers, none of my domains are working as (ns1.server1.com and ns2.server1.com) are not resolving for some reason. The only way to get my other domains to work is to add A records and remove my own nameservers from domain registrar control panel which is not what I want.
So how can I get my domains to work with my own nameservers that I have created in webmin?
Thanks
Hoping someone here can help you out here, but, thinking there may be more relevant places for specific advice like this… (whirlpool and reddit are the first two that come to mind)