First this is not going to go through the whm/cpanel installation on your server, that can best be done by following these instructions.
This setup is also really not pertinent if you are only going to be hosting your single site, it will work but its overkill for it.
This is also assuming you have already got some dediated IP;s, to do nameservers and run sites you really should have 3.
The first thing you need to do is spend some money. Yup, I am telling you right out to avoid all sorts of CRAP and register a domain SPECIFICALLY for the servers you will be hosting from. Even better is to register through a service like DynDns that gives you EXTENSIVE dns control over all domain settings. The benefits will be obvious when adding or removing servers.This is what I have done for macleodservers.com which, right now, is only one VPS but will be including some dedicated servers soon.
The following info will be based off that setup but I imagine other services/setups would be similar.
The first thing you need to do after registering your domain is just wait. let it sit awhile so dns propagates, better to wait now instead of finding stuff isn't working due to dns propagation.
give it a bit, there are a plethora of tools to let you know when its done.
After you are sure the domain registration is all set then in your dns zone you want to create A records for the servers shared ip and its 2 nameserver ip's.
Then you wait a bit for those records to update, usually 2 hours is enough. You can verify by pinging the FQDN and seeing if IP you entered are returned.
After verifying that you setup your machine. IMO its easier to name the server during setup as a member of the domain, for example vps.yourdomain.com, and make sure its using the shared IP you have set.
After the server is installed you will install whm/cpanel (I am not sure but DirectAdmin may be similar) per the install instructions and during setup you you enter the 2 nameserver names and ip's you already created A records for. In WHM you will also need to create A records for these and the shared ip and add them to the zone.
Once that is done and whm/cpanel all installed and updated you should be ready to host any domain. You can then add a cpanel domain/account like normal, make sure that your nameservers are defaulted, and then domain owner just needs to point to your 2 nameservers from his/her registrars account/dns settings.
Now lets say you have a lot of sites hosted and need to add a server, well all you need to do is go to, in this scenario, dyndns zone settings and add the 3 (2 NS and 1 Shared) IP's for the new server. Within a short time these names/ip's will be able to be used.
I messed around all week installing whm multiple times trying to use the same domain name for the server as I was using for sites hosted on it. It can be made to work but is really a LOT more trouble then its worth.
This setup is also really not pertinent if you are only going to be hosting your single site, it will work but its overkill for it.
This is also assuming you have already got some dediated IP;s, to do nameservers and run sites you really should have 3.
The first thing you need to do is spend some money. Yup, I am telling you right out to avoid all sorts of CRAP and register a domain SPECIFICALLY for the servers you will be hosting from. Even better is to register through a service like DynDns that gives you EXTENSIVE dns control over all domain settings. The benefits will be obvious when adding or removing servers.This is what I have done for macleodservers.com which, right now, is only one VPS but will be including some dedicated servers soon.
The following info will be based off that setup but I imagine other services/setups would be similar.
The first thing you need to do after registering your domain is just wait. let it sit awhile so dns propagates, better to wait now instead of finding stuff isn't working due to dns propagation.
give it a bit, there are a plethora of tools to let you know when its done.
After you are sure the domain registration is all set then in your dns zone you want to create A records for the servers shared ip and its 2 nameserver ip's.
Then you wait a bit for those records to update, usually 2 hours is enough. You can verify by pinging the FQDN and seeing if IP you entered are returned.
After verifying that you setup your machine. IMO its easier to name the server during setup as a member of the domain, for example vps.yourdomain.com, and make sure its using the shared IP you have set.
After the server is installed you will install whm/cpanel (I am not sure but DirectAdmin may be similar) per the install instructions and during setup you you enter the 2 nameserver names and ip's you already created A records for. In WHM you will also need to create A records for these and the shared ip and add them to the zone.
Once that is done and whm/cpanel all installed and updated you should be ready to host any domain. You can then add a cpanel domain/account like normal, make sure that your nameservers are defaulted, and then domain owner just needs to point to your 2 nameservers from his/her registrars account/dns settings.
Now lets say you have a lot of sites hosted and need to add a server, well all you need to do is go to, in this scenario, dyndns zone settings and add the 3 (2 NS and 1 Shared) IP's for the new server. Within a short time these names/ip's will be able to be used.
I messed around all week installing whm multiple times trying to use the same domain name for the server as I was using for sites hosted on it. It can be made to work but is really a LOT more trouble then its worth.











