ns1 and ns2 with one different IP each ?

auricom

Verified User
Joined
Aug 24, 2004
Messages
8
Location
On Earth :)
Hello,

I have one linux box with DA. I want to set up ns1.mysite.com=IP1 and ns2.mysite.com=IP2.
I use DA 1.224 on redhat 9 platform.

After following setup thread in the forum, and help site I have:

- in admin » DNS Administration » Entry for mysite.com
ftp A IP1
kamino.fr. A IP1
localhost A 127.0.0.1
mail A IP1
pop A IP1
www A IP1
kamino.fr. NS ns1.mysite.com.
kamino.fr. NS ns2.mysite.com.
mail MX 10

- in admin » Administrator Settings
Server's Hostname box.mysite.com
NS1 ns1.mysite.com
NS2 ns2.mysite.com


but I have on named.conf:

controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

include "/etc/rndc.key";

zone "mysite.com" { type master; file "/var/named/mysite.com.db"; };



and if I follow /var/named/mysite.com.db:

$TTL 14400
@ IN SOA ns1.mysite.com. root.mysite.com. (
2004082401
7200
3600
1209600
86400 )

mysite.com. 14400 IN NS ns1.mysite.com.
mysite.com. 14400 IN NS ns2.mysite.com.

ftp 14400 IN A IP1
mysite.com. 14400 IN A IP1
localhost 14400 IN A 127.0.0.1
mail 14400 IN A IP1
pop 14400 IN A IP1
www 14400 IN A IP1

mysite.com. 14400 IN MX 10 mail


So it seems that IP2 is not used.
How can I solve it please ?

Best Regards,
Auricom
 
Hey,

Did you assign the IPs to yourself (admin) so they can be used for name servers?

If you did, then as admin, go to Reseller -> DNS Admin and select the two IPs and assign them to your domain.

That should create the ns1 and ns2 A records in your zone file.

There's no A records for ns1 and ns2 showing in your post.

Also, you need to make sure the name servers are registered at the registrar where you have your domain registered and that they are using those IPs.

Unless I missed something that should work...

David
 
Thanks for your help. Indeed I didn't put a A records for ns1 and ns2 ... I Add them by using admin » DNS Administration » Entry for mysite.com and addind:
ns1.mysite.com. A IP1 and ns2.mysite.com. A IP2

Thanks.
 
Back
Top