Web Hosting Talk







View Full Version : DNS .. changes


Dedicated
08-22-2001, 09:40 AM
When I create an account in the WHM it refers to ns.mydomain.com how can I change ns.mydomain.com to ns.anydomain.com.

How can I create the nameserver for anydomain.com so when ever I add a domian it will refer to it.

:)

sitekeeper
08-22-2001, 11:50 AM
First you must reserve the IP's for the new name servers.
You must edit the zone file for your domain to add the new nameserver entries in WHM.

There will be name servers already listed, edit them to what you want. Be careful not to delete the periods ‘.’ at the end of each entry that you have modified, otherwise your zone file will not function correctly

You will see:
ADD NEW Entries below this line:
ADD this your IP's for the new NS's.

NS1 14400 IN A 255.00.00.0
NS2 14400 IN A 255.00.00.1

You must register these new nameservers with the registrar for your domain:

I hope this helps!

BOB:D

Dedicated
08-22-2001, 12:36 PM
Yes .. but when I click edit DNS I can't see any entry in there why.

Dedicated
08-22-2001, 12:54 PM
What should the /etc/resolve.conf contain because this is what I have:
domain darkorb.net
search darkorb.net
nameserver 205.162.50.248
nameserver 66.96.193.2
nameserver 66.96.194.2

sitekeeper
08-23-2001, 12:21 PM
Originally posted by Dedicated
What should the /etc/resolve.conf contain because this is what I have:
domain darkorb.net
search darkorb.net
nameserver 205.162.50.248
nameserver 66.96.193.2
nameserver 66.96.194.2
The above is probably correct for you WHM/Cpanal system.

Go to /var/named/ and ls and see if there is a .db file for the domain. The .db file should look something this:

; Zone File for domain.net
@ 14400 IN SOA ns1.domain.net. root.ns1.domain.net. (
998267003
28800
7200
3600000
86400
)

domainnet. 14400 IN NS ns1.domain.net.
domain.net. 14400 IN NS ns2.domain.net.
domain.net. 14400 IN A 66.96.231.297

localhost.domain.net. 14400 IN A 127.0.0.1

domain.net. 14400 IN MX 0 domain.net.

mail 14400 IN CNAME domain.net.
www 14400 IN CNAME domain.net.
ftp 14400 IN CNAME domain.net.
ns1 14400 IN A 66.96.231.299
ns2 14400 IN A 66.96.231.238

If you don’t have an entry the domain was not setup properly.


BOB:D