Vps – Pointing a domain name to a VPS

domain-nameipnameservervps

I just got a VPS. All the host gave me was an IP address to have the domain point to.

Lets say my domain is mydomain.com

So what I did was I removed the nameserver (not the NS records, but the actual nameserver) values. Then I added 3 A records to point to the VPS IP for the following:

ns1.mydomain.com
ns2.mydomain.com
mydomain.com

The host kept telling me I had to set up ns1.mydomain.com and ns2.mydomain.com. So I did.

Then I created 2 NS records for mydomain.com with the values of ns1.mydomain.com and ns2.mydomain.com

Now after I did all that, I tried setting the nameservers to ns1.mydomain.com and ns2.mydomain.com but it wouldn't let me do it.

Is what I've done enough to get my domain to point to the VPS properly? Should I just wait for propogation now?

This is the first time I've tried this so I'm a little lost.

Best Answer

Go to your domain DNS control panel (provided by your registrar) and use it to reset your DNS to it's default configuration.

Once you've done that create an A record (or modify the existing one) for mydomain.com and enter the IP address for your VPS in the appropriate field.

Don't play with the NS records.