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:
  #1  
Old July 10th, 2004, 12:50 PM
n03l n03l is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 24 n03l User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 4 m 12 sec
Reputation Power: 0
Question confused! zone and more domains (with same ns1/ns2)

Hi all, what a great place here. I should have found this place sooner! I would have had more sleep!

Anyway. As far as I can see I got my DNS up and working fine (windows server 2003 and BIND (last version))
When I do a NS lookup it will show me the correct info, and the domain / site can be accessed fine. (from outside the LAN)

Till now I've been using Zoneedit to do all the dNS stuff, but now I'm thinking about moving (over 20 domains) to my own DNS server!

I would like to use the same NS1 and NS2 for all the domain names (no mail needed on any of the domain names), and not setup a new NS1/2 for every domain name!

Do I only need to add the domain names to the "named.conf" file, or do I also need to create a "domainname.com.zone" file for each domain name?

One more "small" thing. I'm still getting an error showing up in the event viewer. The error is Error: zone 9.216.62.in-addr.arpa/IN: loading master file 62.216.9.rev:
unknown class/type

Looking at the error, I guess it's got something todo with the "reverse" zone!

This is how I've set it up (in the named.conf file), and as far as I can see all is ok! (note: my IP is 62.216.9.240)

Quote:
# Reverse IP mapping for 62.216.9.x
zone "9.216.62.in-addr.arpa" {
type master;
file "62.216.9.rev";
};


Any sugestion what could be the error?

Thanks for reading, and keep up the good work!

Noel,
The Netherlands.

Reply With Quote
  #2  
Old July 10th, 2004, 12:57 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 35 m 27 sec
Reputation Power: 77
"Do I only need to add the domainnames to the "named.conf" file, or do I also need to create a "domainname.com.zone" file for each domainname?"

All master zones require a zone block in named.conf and a zone file.

"Any sugestion what could be the error?"

Usually with errors like that you also get a line number. There's a syntax error in your zone file - not named.conf.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

Reply With Quote
  #3  
Old July 10th, 2004, 01:44 PM
n03l n03l is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 24 n03l User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 4 m 12 sec
Reputation Power: 0
Quote:
All master zones require a zone block in named.conf and a zone file.


Ok.. Thank you for the info

Quote:
Usually with errors like that you also get a line number. There's a syntax error in your zone file - not named.conf.


Hmm I thought that I was so close :-( I tried starting BIND with the rndc.exe start command! It did not start
(when I start it the "windows way" it does start!)

Next thing I did is a named.exe -g thing.. Hell this is what I got back..

Quote:
Jul 10 20:18:52.387 starting BIND 9.2.3 -g
Jul 10 20:18:52.402 using 1 CPU
Jul 10 20:18:52.402 loaing configuration from 'C;\WINDOWS\system32\dns\etc\named.conf'
Jul 10 20:18:52.418 set maximum stack size to 0: not implemented
Jul 10 20:18:52.418 set maximum data size to 0: not implemented
Jul 10 20:18:52.418 set maximum core size to 0: not implemented
Jul 10 20:18:52.433 set maximum open files to 0: not implemented
Jul 10 20:18:52.449 listening on IPv4 interface Loopback Interface 1, 127.0.0.1#53
Jul 10 20:18:52.449 listening on IPv4 interface TCP/IP Interface 2, 192.168.1.2#53
Jul 10 20:18:52.465 listening on IPv4 interface TCP/IP Interface 3, 192.168.1.3#53
Jul 10 20:18:52.496 command channel listening on 127.0.0.1#953
Jul 10 20:18:52.512 ignoring config file logging statement due to -g option
Jul 10 20:18:52.512 dns_master_load: 62.216.9.rev:19: unknown RR type 'PRT'
Jul 10 20:18:52.527 zone 9.216.62.in-addr.arpa/IN: loading master file 62.216.9.rev: unknown class/type
Jul 10 20:18:52.527 zone e2b.org/IN: loaded serial 2004041700
Jul 10 20:18:52.527 running


As you can see I've got 2 NIC's in it! Could this be a problem (two times port 53?)

Thanks again for any help! I'm really stuck!

Noel
The Netherlands.

Reply With Quote
  #4  
Old July 10th, 2004, 03:05 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 35 m 27 sec
Reputation Power: 77
Looks like you got PRT in your reverse zone file instead of PTR on line 19.

Reply With Quote
  #5  
Old July 10th, 2004, 03:35 PM
n03l n03l is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 24 n03l User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 4 m 12 sec
Reputation Power: 0
Quote:
Originally Posted by SilentRage
Looks like you got PRT in your reverse zone file instead of PTR on line 19.


Hmm I need more coffie!

Yes it was true.. PRT.. I've changed it, but I now get two errors.. I really suck!

Quote:
Jul 10 22:29:50.621 dns_rdata_fromtext: 62.216.9.rev:19: unexpected end of input
Jul 10 22:29:50.918 zone 9.216.62.in-addr.arpa/IN: loading master file 62.216.9.rev: unexpected end of input


My 62.216.9.rev file looks (now) like this:

Code:
$TTL 900			; 900 seconds default record (T)ime (T)o (L)ive in cache

; Authored by SilentRage
;
; Download Location:
; http://www.dollardns.net/bind/

@		SOA	ns1.e2b.org. (	; ns1.e2b.org is the primary server for e2b.org
			admin.e2b.org.	; contact email for e2b.org is admin@e2b.org
			2004041700		; Serial ID in reverse date format
			21600			; Refresh interval for slave servers
			1800			; Retry interval for slave servers
			604800			; Expire limit for cached info on slave servers
			900 )			; Minimum Cache TTL in zone records

@		NS	ns1.e2b.org.		; ns1.e2b.org is a host for 127.0.0.x
@		NS	ns2.e2b.org.		; ns2.e2b.org is a host for 127.0.0.x

240		PTR	mail.e2b.org.		; 62.216.9.240 is mail.e2b.org


Looks like it's going to be a long night again!

Any suggestions?

Noel

Reply With Quote
  #6  
Old July 10th, 2004, 03:58 PM
n03l n03l is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 24 n03l User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 4 m 12 sec
Reputation Power: 0
I found the problem / fix

In my 62.216.9.rev file the line ends with


Quote:
240 PTR mail.e2b.org. ; 62.216.9.240 is mail.e2b.org


I've added a "return" after this line (so the next line is empty), and guess what.. Error's are gone!

Thanks again SilentRage.. All Kudos go to you!

Noel

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > confused! zone and more domains (with same ns1/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 4 hosted by Hostway