PDA

View Full Version : Need DNS Help...


Kazuma
2003-08-26, 10:09 AM
I want to make my own NameServers, but I ran into a few problems and would appriecieate help...

I registered

NS1
NS2

and pointed both to my ip address. On my server I have BIND installed and I have a Command Matrix as my panel and running Windows.

Here are my questions:

1.If I want to register 2 name servers, can I use the same IP, or I need to get 2 IPs?

2.What Name Servers do I assign my main domain name, the one that registered the Nameservers?

3.What settings do I put under BIND?

charlie
2003-08-26, 10:17 AM
1. no, you cannot use the same ip for the same name as i know it.
2. you assign your new domain servers to your domain
3. you need to add a new zone for each name server as well as the for each domain you are going to maintain

Kazuma
2003-08-26, 10:32 AM
I created ns1.mydomain.com. in ns IP ADDRESS
and same for ns2. and assigned ns1.mydomain.com and ns2.mydomain.com to mydomain.com, but it still doesnt seem to work...

knightfoo
2003-08-26, 12:53 PM
Lets say your main domain is mydomain.com. If you want to host ns1 and ns2 on your own server, you need to request an additional IP address first. Once you get the additional IP, you register ns1.mydomain.com and ns2.mydomain.com with your registrar, each with a different IP address. You should put ns1 on your primary IP address and ns2 on the additional IP address.

If mydomain.com itself is registered to ns1.mydomain.com and ns2.mydomain.com, you need to put the following NS records in the mydomain.com zone:

mydomain.com. IN NS ns1.mydoman.com.
mydomain.com. IN NS ns2.mydomain.com.

You need these 2 records in your "mydomain.com" zone regardless of what nameservers mydomain.com is registered to:

ns1.mydomain.com. IN A 192.168.20.3
ns2.mydomain.com. IN A 192.168.40.5

Of course you change the IP addresses to match what is on your server.

After you have added the necessary records and restarted named, you are ready to start registering domains to your new nameservers. Make sure you put the NS records in *all* zone files for domains that are registered to your nameservers, but do not put the A records for the nameservers in those zones. The A records for ns1 and ns2 only need to be in the mydomain.com zone.

-knightfoo

Kazuma
2003-08-30, 12:26 PM
Thank You,

It seemed to work, but I'm getting a strange problem now.

http://www.mydomain.com - works

BUT

http://mydomain.com - without www doesn't link to my server at all...it goes to cannot find.

carlos
2003-09-07, 13:37 PM
If mydomain.com itself is registered to ns1.mydomain.com and ns2.mydomain.com, you need to put the following NS records in the mydomain.com zone:

mydomain.com. IN NS ns1.mydoman.com.
mydomain.com. IN NS ns2.mydomain.com.

You need these 2 records in your "mydomain.com" zone regardless of what nameservers mydomain.com is registered to:

ns1.mydomain.com. IN A 192.168.20.3
ns2.mydomain.com. IN A 192.168.40.5

where do I add all this records?
im running redhat 9
I think I can use "bindconf"
when you run that application there is a lot of places to put stuff ..
any body running linux here? that can give me a little help
thanks!!

QT
2003-09-08, 22:23 PM
Originally posted by carlos
where do I add all this records?
im running redhat 9
I think I can use "bindconf"
when you run that application there is a lot of places to put stuff ..
any body running linux here? that can give me a little help
thanks!!

You might want to check out the DNS how-to at tldp.org. If you have webmin, there's a bind configuration option that will help you with some of the configuration.