DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old June 24th, 2002, 11:10 PM
MattWil MattWil is offline
YaBN (Yet another BSD Newbie)
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 74 MattWil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
DJBDNS ns1 and ns2

Hi, right now I'm setting up ns1 and ns2 for a server to run dns. To setup tinydns i'm using the line 'tinydns-conf tinydns dnslog /etc/tinydns ip.is.he.re'

I'm not sure if this ip setup is the 'right' way, but if you have any suggestions, I'd love to hear them. As of right now, there is one ip for the server. There is another ip for ns1, and another for ns2. (I'm not sure if it's right to make ns1 and the server the same) I guess I could probably use the ns1 ip as the server ip, but is it good to have the servers hostname as ns1? Is that right?

The main question is how to setup tinydns. I'm not sure of what ip I should put there. Should it be ns1? Shoudl I put the ns1 ip there and then add the ns2 ip to /etc/tinydns/env/IP so that there is the ns1 and ns2 ips in there? Thanks!
__________________
-MattWil

Reply With Quote
  #2  
Old June 25th, 2002, 10:51 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> To setup tinydns i'm using the line 'tinydns-conf tinydns dnslog /etc/tinydns ip.is.he.re'

I don't remember what's your server OS. If it's any BSDs, mkdir a /var/djb directory and use /var/djb/tinydns instead (my standard), just don't use djb's hier standard (/etc/tinydns) because it's highly non-standard.

>> I'm not sure if it's right to make ns1 and the server the same

I'm confused. How many box do you have? How many IP?

>> is it good to have the servers hostname as ns1?

Very common.

>> and then add the ns2 ip to /etc/tinydns/env/IP

You can't do that. You need to run multiple tinydns and bind each of them to different IP using the tinydns-conf script. Anyhow, running both ns1 and ns2 on the same box defeats the purpose of having a slave nameserver in the first place.

Reply With Quote
  #3  
Old June 25th, 2002, 05:19 PM
MattWil MattWil is offline
YaBN (Yet another BSD Newbie)
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 74 MattWil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Quote:
>> To setup tinydns i'm using the line 'tinydns-conf tinydns dnslog /etc/tinydns ip.is.he.re'

I don't remember what's your server OS. If it's any BSDs, mkdir a /var/djb directory and use /var/djb/tinydns instead (my standard), just don't use djb's hier standard (/etc/tinydns) because it's highly non-standard.

I would like to use FreeBSD personally , but the person who I am helping bought a Sun server. It's Solaris 8.

Quote:
>> I'm not sure if it's right to make ns1 and the server the same

I'm confused. How many box do you have? How many IP?

There is 1 box, and we have about 20 ips as of now that are ready for use. I'm just wondering if the ns1 ip should be the ip to the server. Which would make the hostname of the server ns1.domain.com.

Quote:
>> is it good to have the servers hostname as ns1?

Very common.

Would it just be wasting an ip if we made the server and ns1 different ips?

Quote:
>> and then add the ns2 ip to /etc/tinydns/env/IP

You can't do that. You need to run multiple tinydns and bind each of them to different IP using the tinydns-conf script. Anyhow, running both ns1 and ns2 on the same box defeats the purpose of having a slave nameserver in the first place.

I've never setup djbdns with nameservers like this, so I'm not totally clear on how to. I know that when you run the tinydns-conf program, you are telling it to use the ip which dns will listen on. We haven't found someone to swap dns servers with yet, so for now I want to run ns1 and ns2 on the same server. I just don't know if I need to have it listen on both of the ips or not. For instance, if we were to switch secondary dns servers with someone else, would we have to run two instances of tinydns for their ns2 ip? That just still seems odd to me because wouldnt' that make two data files?

Thanks for the help!

Reply With Quote
  #4  
Old June 25th, 2002, 05:34 PM
MattWil MattWil is offline
YaBN (Yet another BSD Newbie)
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 74 MattWil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
I was just thinking and I'm still confused on this. For ns1 and ns2, wouldn't I just do something like this in the data file?

Code:
+ns1.domain.com:1.2.3.101
+ns2.domain.com:1.2.3.102


I guess the main things that I don't get are, is it correct to set the hostname to ns1. And second, what ip should tinydns listen on?

Thanks!

Reply With Quote
  #5  
Old June 25th, 2002, 07:25 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> There is 1 box, and we have about 20 ips as of now that are ready for use

Tjen choose two IPs and set your NIC to 1.2.3.101 and create alias on the NIC and assign 1.2.3.102 to it. Note, this is the very first step you must do before configuring tinydns.

Quote:
I'm just wondering if the ns1 ip should be the ip to the server. Which would make the hostname of the server ns1.domain.com

Yes.

>> Would it just be wasting an ip if we made the server and ns1 different ips?

I don't see there's a problem with a hostname like "mail.domain.com", "ns1.domain.com" or the like. Since he has plenty of IPs, why can't he set his system hostname to ns1.domain.com?

>> you are telling it to use the ip which dns will listen on

Make sure your NICs are setup accordingly before doing this.

>> I just don't know if I need to have it listen on both of the ips or not

Yes you do. You need to run tinydns-conf twice, with different IP and path (i.e. /var/djb/tinydns-master and /var/djb/tinydns-slave respectively or whatever name you like).

>> wouldn't I just do something like this in the data

That'd be A record only, and you definitely need more than that. Here's an example of /var/djb/tinydns/root/data (/service/tinydns/data):
Code:
Zdomain.com:ns1.domain.com:hostmaster.domain.com
&domain.com::ns1.domain.com
&domain.com::ns2.domain.com
+ns1.domain.com:44.33.22.11
+ns2.domain.com:44.33.22.12
+ftp.domain.com:44.33.22.11
+www.domain.com:44.33.22.11
+domain.com:44.33.22.11
@domain.com::ns1.domain.com.:0

Reply With Quote
  #6  
Old July 3rd, 2002, 09:47 PM
MattWil MattWil is offline
YaBN (Yet another BSD Newbie)
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 74 MattWil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Sorry, I know this is a little old but I had one more queston...

I setup /var/djb/tinydns-master and /var/djb/tinydns-slave.

For the data file in /var/djb/tinydns-master/root I've set it up like you show. For the data file under slave, would it be like this?

Code:
Zdomain.com:ns1.domain.com:hostmaster.domain.com
&domain.com::ns1.domain.com
&domain.com::ns2.domain.com
+ns1.domain.com:44.33.22.11
+ns2.domain.com:44.33.22.12
+ftp.domain.com:44.33.22.11
+www.domain.com:44.33.22.11
+domain.com:44.33.22.11
@domain.com::ns1.domain.com.:0


Or would I change it to have:

Zdomain.com:ns2.domain.com:hostmaster.domain.com

and

@domain.com::ns2.domain.com.:0

Thanks!

Reply With Quote
  #7  
Old July 5th, 2002, 02:42 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
For the data file under slave that should only be:
Code:
# Do not edit this file
# data.cdb is to be copied from ns1
9


>> Or would I change it to have:
>> Zdomain.com:ns2.domain.com:hostmaster.domain.com

You can't. That Z line, the 2nd one followed by the colon (ns2.domain.com) is known as SOA record's MNAME. One domain can only have ONE SOA record, usually the MASTER nameserver of that domain.

Just so you know, only tinydns-master has the authority to modify data, rebuild it to data.cdb. tinydns-slave just can't do that because its data.cdb is supposed to by sync'ed from tinydns-master. Have a look at http://www.lifewithdjbdns.org/

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > DJBDNS ns1 and ns2


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway