DNS headache

shwekhaw

New member
Joined
Apr 1, 2005
Messages
2
I am getting headache reading all threads and trying out this and that. Now I do not even remember what I have done to my new server.
I would appreciate if someone show me step by step. I am new to DA too. Admin login>Reseller is different from logging in as reseller itself. So confusing to me. I was cpanel user and I switched to DA since I do not like CPanel hoping I could learn.

I have 5 ips total.
one is for server,
two for two domains that I am trying to host and
another two for nameservers.

Let's say domain name for nameserver I like to use is nameserver.com.
Nameserver.com is just registered and no website is hosted.

I have ns1.nameserver.com and ns2.nameserver.com pointing to nameserver on another delicated server with Cpanel. They are working fine.

I want to set up ns3.nameserver.com and ns4.nameserver.com on this delicated server with DA. I like to use extra two IPs to set them up. I do not wish to host nameserver.com on the server.

Anyone please tell me how to start from scratch. Let me know any file I need to edit before starting.

I have followed the instruction here.
http://www.directadmin.com/forum/showthread.php?s=&threadid=130
But it does not work. When I go to reselelr level to create Nameserver, drop down box next to ns1, ns2 is empty and DA does not let me create nameserver.


S-H-W-E-K-H-A-W
 
Setup a master and a slave server:
Example:
Code:
[color=blue]The other dedicated server (ns1 & ns2):[/color]

/etc/named.conf:
zone "nameserver.com" { type master; file "/path/to/the/zone/file"; };

Zone file:
$TTL 86400
@       IN      SOA     ns1.nameserver.com. noc.nameserver.com. (
        2005040201 ; Serial
        7200       ; Refresh
        7200       ; Retry
        2419200    ; Expire
        86400 )    ; Minimum

        IN      NS      ns1.nameserver.com.
        IN      NS      ns2.nameserver.com.
        IN      NS      ns3.nameserver.com.
        IN      NS      ns4.nameserver.com.

        IN      MX 10   nameserver.com.

        IN      A       <ip>
ns1     IN      A       <ip>
ns2     IN      A       <ip>
ns3     IN      A       <ip>
ns4     IN      A       <ip>
Code:
[color=blue]This dedicated server (ns3 & ns4):[/color]

/etc/named.conf:
zone "nameserver.com" {
    type slave;
    file "/path/to/the/zone/file";
    masters {
        <ip#1>;
        <ip#2>;
    };
};
 
Don't forget to let your registrar know that ns3.nameserver.com & ns4.nameserver.com are also name servers for nameserver.com
 
Thank you for your post. One of my friend helped me set up. I do not kno what he did but it is working now. I will bookmark this page so I can come back next time when I had to set up a server again.
 
Back
Top