Web Hosting Talk







View Full Version : dns and whm, please help!


iago
12-05-2002, 07:48 PM
Hello, i just got a dedicated server and wan to set my own nameservers on the same machine.

I was assigned with an extra pair of ips to set the dns but im a litle confused. I made a search and found the following steps, though this was a thread of almost 2 years.

Could you tell me if this steps are ok?:

1) Under Server Setup, click on Edit Setup. Scroll down to Primary Nameserver and enter ns1.yourdomain.com. In the Secondary Nameserver box enter ns2.yourdomain.com (replace with your real domain name). Click Save at the bottom.

2) Under IP Functions click on Show IP Address Usage. Skip the first IP listed, and select any 2 others to use for your nameservers. These IP's can be used for websites, but cannot be shared with other nameservers you may set up later.

3) If you have not yet added an account for your domain, then under Account Functions, click on Add a New Account and create your account.

4) Under DNS Functions, click Edit a DNS Zone. Select your domain and click edit.
To the right of the SOA, enter your new primary nameserver in both text boxes. They should look like "ns1.domain.com." and then "root.ns1.domain.com.". Make sure you have the trailing (ending) dots!

Look for NS under the heading of "Record Type". There will be 2 lines with nameserver names on them (such as ns.vosn.net and ns2.vosn.net). Replace these nameservers with your new primary and secondary nameservers.

Scroll down to the first line past Add New Entries Below this Line. In the first box enter "ns1" (without the quotes), leave the "14400" and the "IN" as they are. In the next box enter the IP you will use for ns1, leave the last 2 boxes empty.

Repeat this procedure on the next line for ns2. Click on Save at the bottom.

5) Register your new nameservers with your registrar.



I also found this other steps on configuring dns (this ones are shorter and does not mention zones):

1) Request 2 ip's
2) Click on Manage Nameserver IPs
3) Add the 2 ip's
4) Ask your domain company to register ns1.yourdomain.tld - ip1 and ns2.youredomain.tld -ip2.
5) leave it for about 24 hours to resolve
6) click on Edit Setup
7) find Primary Nameserver:, add ns1.yourdomain.tld then click add A entry and do the same for Secondary Nameserver but with ns2.
8) Everything should work ok, but I had a few problems with bind which was easily fixed by reinstalling it.


Hope somebody could help with this. I dont know much about dns servers setup. I want to have my own dns servers like dns1.mydomain.com and dns2.mydomain.com and also want to offer private nameservers to my resellers (dns1.reseller.com, etc)

Should i also use third party dns servers for reliability in case my dns servers go down?

Kind regards!

StevenG
12-05-2002, 08:45 PM
All that needs to be done is this:-

1. Add your name servers ns1 + ns2 under server setup as above.
2. Edit your primary domain names dns zone and add

ns1 A 123.123.123.123
ns2 A 123.123.123.124

(These are 2 IP's from ones assigned to you)

Clcik save and you are done.

Go create them at your registrar.

You can assign as many ns1 + ns2 nameservers to the same IP.. it is no longer necessary to have unique IP's for name servers.

Hope that helps. :)

iago
12-05-2002, 09:05 PM
Thanks for your reply Dotcomsnz

So, i followed this steps:


1) Under Server Setup, click on Edit Setup. Scroll down to Primary Nameserver and enter ns1.yourdomain.com. In the Secondary Nameserver box enter ns2.yourdomain.com (replace with your real domain name). Click Save at the bottom.

2) Under IP Functions click on Show IP Address Usage. Skip the first IP listed, and select any 2 others to use for your nameservers. These IP's can be used for websites, but cannot be shared with other nameservers you may set up later.

3) If you have not yet added an account for your domain, then under Account Functions, click on Add a New Account and create your account.

4) Under DNS Functions, click Edit a DNS Zone. Select your domain and click edit.
To the right of the SOA, enter your new primary nameserver in both text boxes. They should look like "ns1.domain.com." and then "root.ns1.domain.com.". Make sure you have the trailing (ending) dots!

Look for NS under the heading of "Record Type". There will be 2 lines with nameserver names on them (such as ns.vosn.net and ns2.vosn.net). Replace these nameservers with your new primary and secondary nameservers.

Scroll down to the first line past Add New Entries Below this Line. In the first box enter "ns1" (without the quotes), leave the "14400" and the "IN" as they are. In the next box enter the IP you will use for ns1, leave the last 2 boxes empty.

Repeat this procedure on the next line for ns2. Click on Save at the bottom.

5) Register your new nameservers with your registrar.


Now i have just to add my dns to the registrar, that would be: ns1.mydomain.com and ns2.mydomain.com right?

Then how would i know if my DNS are running and resolving domains? Is it anymay on WHM that i could check this?

So now, when somebody type mydomain.com,. my dns servers (ns1.mydomain.com) will resolve the address and send the visitor to the asigned ip for the website?

Thanks for your help! i really apreciate it :)

StevenG
12-05-2002, 09:36 PM
Now i have just to add my dns to the registrar, that would be: ns1.mydomain.com and ns2.mydomain.com right?

Your registrar will have an option to CREATE name server.
Just go ahead and create the name servers with the IP's you added to your dns zone.

Update the name servers for your domain name with your newly created ones.

Wait 24 hours ish for those name servers to resolve.

Hope that helps. :D