Hi,
sorry for this, im sure this is explained a lot before but i cant seem to understand the exact process. First let me tell you what im facing and what i have done.
Assume
Domain registered: bob.com (through godaddy)
Server IP: 123.123.123.1, 123.123.123.2
Server Hostname: myserver.DynDNS.com (registered through DynDNS.com for free dns domains and is linked to 123.123.123.1) so i login to virtualmin through myserver.DynDNS.com:10000
OK, so first i went to godaddy and registered bob.com. Now i added ns1 and ns2 (ns1.bob.com and ns2.bob.com) to the hosts list with the correct ip addresses through godaddy (following the tutorial at http://www.virtualmin.com/node/6827). So i have done upto:
You don’t do anything in Virtualmin for the first set of name servers. GoDaddy won’t let you spring a nameserver into existence that doesn’t already have a hostname pointing to it. You need a zone that you control, and already has name service (that you also control), in order to create two new name server records that point to your Virtualmin server. Your Virtualmin server does not need to know about these names at all (and it won’t do any good for it to know about them, because GoDaddy won’t let you enter an IP and bootstrap a server into existence…some registrars will trust that the names/IPs you’re entering will resolve correctly, but GoDaddy is not one of them).
You can use any number of free DNS hosting services (including GoDaddy itself) to setup those first name servers on some zone that you control. You can’t use your Virtualmin server as a name server until it already has a name that resolves.
So, login to GoDaddy, go to the Domain Control Center.
Click on one of your zones that has name service provided by GoDaddy servers (this is the default when you first buy a domain at GoDaddy). It doesn’t matter if this is the zone you want to be the “permanent” name server hosting zone. This is just temporary until you have made your Virtualmin server exist for GoDaddy.
Find the section labeled “Hosts” at the bottom of the page, and click “Add”.
Fill in “ns1” in the hostname. Fill in the first IP address of your Virtualmin server in the Host IP 1 field.
Click OK.
Click Add again in the Hosts section.
Fill in “ns2” in the hostname. Fill in the second IP address of your Virtualmin server.
Click OK.
Then i added ns1.bob.com and ns1.bob.com to the nameservers part of the bob.com domain inside the godaddy admin area.
Now the next part is a bit shady for me. I cannot follow the steps here (seems a bit confusing to me). The instructions state:
Now (or a few hours from now, when the GoDaddy server reloads its zone files), you can make use of your Virtualmin server. For your next zone, you’re going to change the name servers to ns1.domain.tld (whatever zone you used in the steps above) and ns2.domain.tld. Once that zone is up and running you can actually move all name hosting (including the zone you used in the bootstrap step above) to your Virtualmin server.
(I consider this the single most irritating thing about GoDaddy.)
Once all of that’s done, you may want to fiddle with the kinds of NS records Virtualmin produces, and you may want to setup a DNS slave.
The BIND sections of the Webmin documentation might be worth reading up on:
http://doxfer.webmin.com/Webmin/BINDDNSServer
http://doxfer.webmin.com/Webmin/BINDTroubleshootingTools
But you don’t actually need to do anything to setup zones in Virtualmin. I’m just including this as “recommended reading” if you still aren’t sure what the heck I’m talking about.
You will need to add a secondary NS record to your Virtualmin Server Templates, IF you are not running a slave DNS server.
Browse to the Server Templates that you use, and in the BIND DNS domain section, add:
${DOM} IN NS ns2.domain.tld
Where domain.tld is replaced with whatever domain you plan to use for your name server zone. (Usually your primary company domain. For example, we use ns1.virtualmin.com and ns2.virtualmin.com for all of our various zones.)
And, you may also need to explicitly set the first name server, if the hostname of your server is not the name you want to serve out as the other NS record. That can be set in the “Master DNS server hostname” field. Set it to ns1.domain.tld.
DNS can be very intimidating, until you really grasp what it’s doing and how it works, but it’s actually a pretty simple bunch of concepts.
Just remember:
* The registrar (GoDaddy) tells the world how to find your name server
* Your name server tells the world how to find your host addresses.
You need both for anything to work. Virtualmin can only handle the host addresses. It can’t do anything about GoDaddy and those glue records. (Our domain registration plugin might actually handle some of that, but it doesn’t support GoDaddy yet.)
So without doing this 2nd part i have no probolem loading bob.com. But i have had complains that the website sometimes dont load and gives unable to resolve address errors (all sounds like dns things). So i used some online dns lookup tools and found some of these tools says my NS is ns1/ns2.bob.com but some say myserver.DynDNS.com.
I just need to also confirm that as it is, myserver.DynDNS.com can be pingged/tracert’d and it shows the server ip. But, ns1/ns2.bob.com cannot be pinged from my local machine nor tracert’d. This is probably obvious…
I also tried http://www.checkdns.net/
In the report it stated that:
NS list mismatch: registration authority reports that domain is hosted on the following servers: ‘ns1.bob.com; ns2.bob.com’, but DNS server ns1.bob.com reports domain to be hosted on ‘myserver.DynDNS.com’. Please make sure that you configure the same DNS servers in registrar database and on your DNS
Can anyone please tell me some clear way to fix this? Im a bit lost right now…
Any help would be greatly appreciated