Need help with primary domain DNS

skyraider

Verified User
Joined
Jun 9, 2006
Messages
10
Hi,

I'm a newbie to dedicated servers. I just got one with a DirectAdmin cp, and I have a primary domain, mydomain.com. I want to be able to add websites to my server by making their DNS records ns1.mydomain.com and ns2.mydomain.com. However, I don't know what to change in terms of the A-record and DNS records of the actual primary domain, which is registered at 1&1. Right now, I have my server IP as mydomain.com's A-record. Is that correct?

Thanks.
 
You would register two nameservers off your primary domain and assign them to ips on the server.

A records just point to the ip on the server serving the website. You must register the nameservers at 1&1 though through their control panel.

Point one ip to ns1.yourdomain.com and another ip to ns2.yourdomain.com. After you register the nameservers you can then move your domain onto the new created nameservers.
 
Thanks for the reply. With 1&1, I don't have an option to register nameservers. So, I set the A-record of ns1.mydomain.com, a subdomain I created, to the first IP of my server, and the A-record of ns2.mydomain.com, also I subdomain I created, to a second IP of my server.

I also set the A-record of mydomain.com to an IP on my server (this IP is also the IP I used for the A-record of ns1.mydomain.com, and it's also my primary IP). Is this OK or unnecessary, and will it mess things up?
 
If the 1and1 interface won't allow you to register nameservers for a given domain then you won't be able to use that domain for nameservers. There's nothing you can do about that because only registered nameservers will work on the 'net.

Jeff
 
Back
Top