Debbb:
Regardless of Registrar you use, if you want the site to resolve to your VPS then there has to be the VPS's IP as the A Record entry in each of the (up to 3) nameservers. Most configurations only use 2 nameservers and this is OK.
Let's use an example to illustrate what needs to happen.
I'll 'ask' the internet for the nameservers of debbb.com
Code:
host -t ns debbb.com
debbb.com name server dns11.hichina.com.
debbb.com name server dns12.hichina.com.
and now I'll ask each of the nameservers for the A Record of the domain called debbb.com (getting fancy here with code)
Code:
host -t ns debbb.com | while read dom ns server; do dig +short $dom; done
223.7.1.107
223.7.1.107
Each nameserver says the IP of debbb.com is 223.7.1.107.
Next I'll use the "host" command from a terminal for the record for debbb.com
Code:
host debbb.com
debbb.com has address 223.7.1.107
The process will contact (simplified) the first nameserver and if it can't reach the first one, it will ask the second one for the A Record.
223.7.1.107 is the A Record from each of the nameservers and this is where the internet gets pointed to when it asks for debbb.com
This A Record should be the IP of your VPS.
With regard to nameservers, You can use the nameservers provided by the Domain Registrar. Most, if not all Domain Registrars will allow you to point the A Record to any host you desire. Yours should be the assigned public IP of your VPS.
Take my domain, for example:
bournetoraiseshell.com, you'll see that I registered at GoDaddy and my nameservers are the ones provided by GoDaddy.
Each of those 2 nameservers has an A Record for bournetoraiseshell.com that points to my actual server.
Please refer to
http://www.dashsystems.com/TIP_DNS-explanation.cfm for further explanation.
I hope that's helpful.
Edit:
Quote:
Originally Posted by debbb
Thank you very much, then I have used only A Address from manage DNS page of the registrar
|
That A Record for the domain (at the Domain Registrar) for both ns1.mydomain.com and ns2.mydomain.com should be the public IP of your VPS.