Nameserver - how to huh?

etegration

Verified User
Joined
Jan 22, 2004
Messages
139
Location
Singapore
this is really confusing so i hope someone can guide me.

I have 4 IP address.

111.222.333.001
111.222.333.002
111.222.333.003
111.222.333.004

for example. 001 is assigned to status "server".

how do i assign 02 and 03 to dns1.mydomain.com and dns2.mydomain.com respectively? Will all new domains newly create automatically use dns1 and dns2.mydomain.com ?

i currently have NS1 and NS2.mydomain.com and i want my clients to migrate when they're ready thus they just have to upload their files, migrate their mySQL db etc then change their DNS to DNS1 and DNS2.mydomain.com from NS1 and NS2.mydomain.com and wait for the usual DNS propagation of 24 to 72 hrs and it'll be done but what kind of settings do i have to do on my side's directadmin?

Also, currently, my site uses http://111.222.333.001:2222 for Directadmin's main page, how can i use http://111.222.333.001 for my main hosting site?
 
Last edited:
Hello,

1) Admin Panel -> IP Manager -> select 002 and 003 -> select your username ("admin") and click "assign to".

2) Reseller Panel -> Nameservers -> select the 2 IP's, select your domain, enter ns1, ns2 (or whatever you want to call them) and click "Create".

3) make sure that ns1/ns2.domain.com are setup in the lower part of the Nameservers page as the ns's to be assigned to new users. Also set it up in Admin Panel -> Admin Settings if you want those nameservers to be assigned to new Resellers.

The main thing to remember is that all DA does is adds 2 A records for ns1 and ns2 and then set the domains to use the new NS values. This can be completly done in the dns administration and the use of the Nameservers page is completely not required.


If 001 is the main server IP, then it will be setup to go to /var/www/html. You can change that path and point it to your own domain by manually editing /etc/httpd/conf/httpd.conf and scrolling to the bottom of the file. Change the "DocumentRoot" to point to wherever you want (probably your domains public_html directory).

John
 
DirectAdmin Support said:
Hello,

1) Admin Panel -> IP Manager -> select 002 and 003 -> select your username ("admin") and click "assign to".

2) Reseller Panel -> Nameservers -> select the 2 IP's, select your domain, enter ns1, ns2 (or whatever you want to call them) and click "Create".

3) make sure that ns1/ns2.domain.com are setup in the lower part of the Nameservers page as the ns's to be assigned to new users. Also set it up in Admin Panel -> Admin Settings if you want those nameservers to be assigned to new Resellers.

The main thing to remember is that all DA does is adds 2 A records for ns1 and ns2 and then set the domains to use the new NS values. This can be completly done in the dns administration and the use of the Nameservers page is completely not required.


If 001 is the main server IP, then it will be setup to go to /var/www/html. You can change that path and point it to your own domain by manually editing /etc/httpd/conf/httpd.conf and scrolling to the bottom of the file. Change the "DocumentRoot" to point to wherever you want (probably your domains public_html directory).

John

Thank John for the guidance. I have tried changing one domain (nschanged.com for this example) from the old:

ns1 and ns2.mydomain.com

to the new:

dns1 and dns2.mydomain.com

but when i do a ping of the domain name that has the NS chang, it returns

111.222.333.001

it's ok i guess as i have assign all 4 IP to the NIC of the server using redhat-config-network (or is it redhat-network-config?) but the main page does not load. I can go to http://myserverip/~domain and it loads the test age but when i go the "nschanged.com", it returns the 111.222.333.001 page which is the Apache test page. Why so? what have i done wrongly?
 
Hello,

Make sure that the domain has been added (probably done already) and that it's using the same IP as it's resovling to. User Panel -> Account Stats / Logs -> and verify that the IP matches.

John
 
DirectAdmin Support said:
Hello,

Make sure that the domain has been added (probably done already) and that it's using the same IP as it's resovling to. User Panel -> Account Stats / Logs -> and verify that the IP matches.

John

Do you mean http://serverIP:2222/CMD_USER_STATS?domain=domain.com name ?

For nschanged.com

IP 111.222.333.001

Name Server 1 dns1.mydomain.com (which is assigned to 111.222.333.002)
Name Server 2 dns2.mydomain.com (which is assigned to 111.222.333.003)

Name Servers are set up in Namecheap.

EDIT THIS POST ADD: I did a ping to nschanged.com and it returned 111.222.333.001, should it return 111.222.333.002 instead? If so, that mean i would just only need to edit the NS through Namecheap to use 111.222.333.002 and 111.222.333.003 (i have 4 IPs , that means leaving 111.222.333.004 untouched for the moment) to dns1 and dns2.mydomain.com right?
 
Last edited:
Hello,

If the CMD_USER_STATS is returning 111.222.333.001, then obviously that's what it will resolve to. Don't see why you'd think it should resolve to 111.222.333.002. Nameserver settings at your registrar just need to point to to nameservers that control your domain. The actual IP of your domain can be completely different (or the same).. they are independant.

John
 
DirectAdmin Support said:
Hello,

If the CMD_USER_STATS is returning 111.222.333.001, then obviously that's what it will resolve to. Don't see why you'd think it should resolve to 111.222.333.002. Nameserver settings at your registrar just need to point to to nameservers that control your domain. The actual IP of your domain can be completely different (or the same).. they are independant.

John

eh John, ok so i know the NS are pointing to my server which is correct now but they are not going into the respective domain name's folders (aka respective public_html folders) and displaying the contents. What do i do?

try taportal.com it is pointing to my main page on the server. i have redirected Apache's document root to one of the domain account thus that page display but taportal.com is pointing to the same folder and not http://202.157.170.68/~taportal help! Due to the time difference, i get answers really slowly but as posted b4, the fella selling me DA know nuts! help!

FYI Admin > DNS > taportal.com :
Name Type Value Select
ftp A 202.157.170.68
localhost.taportal.com. A 127.0.0.1
mail A 202.157.170.68
pop A 202.157.170.68
taportal.com. A 202.157.170.68
www A 202.157.170.68
taportal.com. NS dns1.ministryofhosting.com.
taportal.com. NS dns2.ministryofhosting.com.
taportal.com. MX 0
 
Last edited:
Hello,

Make sure you have that domain added and that it's on the same IP in apache: 202.157.170.68

John
 
DirectAdmin Support said:
Hello,

Make sure you have that domain added and that it's on the same IP in apache: 202.157.170.68

John

it's added

FYI Admin > DNS > taportal.com :
Name Type Value Select
ftp A 202.157.170.68
localhost.taportal.com. A 127.0.0.1
mail A 202.157.170.68
pop A 202.157.170.68
taportal.com. A 202.157.170.68
www A 202.157.170.68
taportal.com. NS dns1.ministryofhosting.com.
taportal.com. NS dns2.ministryofhosting.com.
taportal.com. MX 0
 
DirectAdmin Support said:
Hello,

I get forwarded to a forum now, so I'll assume you got it working.

John

Hi John, thanks for checking this post and the URL i have posted. Yes it is up. i deleted everything form username to domain to NS records etc etc and recreated everything. It seems the guys who sold me DA did something wrong when he reinstalled DA (and btw, he messed up php with Apache for me too!) and he's charging $50 singapore dollars for installation. I have mailed him regarding the waiving of the fees since i am solving most things weith the help of this forum and in particular you John (thanks!) and fellow members and of course with help using Google. ;)

Once again, thanks John!
 
etegration said:
It seems the guys who sold me DA did something wrong when he reinstalled DA
You've got me confused. There aren't any DA resellers.

Or at least there aren't supposed to be.

What am I missing?

Jeff
 
Bummer...

I was hoping you were taking reseller applications; you know we want to be a reseller.

Jeff
 
Back
Top