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 August 9th, 2004, 11:52 AM
one-man-show one-man-show is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 3 one-man-show User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
help please with bind9 on OpenBSD...(long)

I am trying to set up a local authorative + caching dns server for my private office intranet. I do have the cach working.

My server is Bind 9.2.3 on OpenBSD 3.5. I am a web-database developer and this same server hosts all my projects. I want to take advantage of Apache's name-based Virtual hosts while avoiding the win-client-hosts-file-from-hell syndrom.

I cant seem to find specific instructions on how to do this. I have tried the "Bet you want to setup a DNS server huh?" thread (along with countless others) and always run into the same error.

When I run: #>named-checkzone wcs.inet wcs.inet
I get: dns_rdata_fromtext: wcs.inet:8: near eol: unexpected end of input
zone wcs.inet/IN: loading master file wcs.inet: unexpected end of input




My intranet is as follows;
router IP:192.168.0.1,
-does dhcp (.100 to .200) for all clients,
-sets primary dns:192.168.0.2 and 2nd and 3rd to my ISP's DNS IPs

my server; hostname:spock, IP: fixed 192.168.0.2, domain: wcs.inet(internal only)



relevent files;

/var/named/master/wcs.inet
$TTL 86400 ; 24 hours could have been written as 24h
$ORIGIN wcs.inet.
@ 1D IN SOA spock.wcs.inet. (
2002022401 ; serial
10800 ; 3h refresh
15 ; retry
25200 ; 1w expire
10800 ; 3h minimum
)

@ IN NS spock.wcs.inet. ; in the domain
; server host definitions
pldev IN A 192.168.0.2 ;web server definition



/var/named/etc/named.conf
<snip>
acl clients {
192.168.0.0/24;
::1;
};

options {
version ""; // remove this to allow version queries
forward only;
forwarders { 66.82.XXX.XXX;198.77.XXX.XXX; };
listen-on { any; };
listen-on-v6 { any; };

allow-recursion { 127/8;192.168/24; };
};

logging {
category lame-servers { null; };
};

// Standard zones
//
zone "." {
type hint;
file "standard/root.hint";
};

zone "localhost" {
type master;
file "standard/localhost";
allow-transfer { localhost; };
};

zone "127.in-addr.arpa" {
type master;
file "standard/loopback";
allow-transfer { localhost; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" {
type master;
file "standard/loopback6.arpa";
allow-transfer { localhost; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.int" {
type master;
file "standard/loopback6.int";
allow-transfer { localhost; };
};

zone "com" {
type delegation-only;
};

zone "net" {
type delegation-only;
};



//WCS intranet servers
zone "wcs.inet" IN {
type master;
file "master/wcs.inet";
};

// reverse map for class C 192.168.0.0
zone "0.168.192.in-addr.arpa" {
type master;
file "master/192.168.0.rev";
};


Can anyone help me out?

Thanks In Advance
one-man-show

Reply With Quote
  #2  
Old August 10th, 2004, 05:01 AM
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,195 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 15 h 53 m 4 sec
Reputation Power: 77
let me make sure I got the right impression here. Attach (don't paste) your "wcs.inet" file, and paste the response to these commands. Only the middle command actually outputs something. The first and last simply stops and starts the server.

rndc stop
named -u named -g
named -u named
__________________
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 August 10th, 2004, 06:56 AM
one-man-show one-man-show is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 3 one-man-show User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks SR....

root@spock ~ #>named -u named -g
Starting privilege seperation
Aug 10 07:47:11.372 starting BIND 9.2.3 -u named -g
Aug 10 07:47:11.373 using 1 CPU
Aug 10 07:47:11.381 loading configuration from '/etc/named.conf'
Aug 10 07:47:11.384 listening on IPv6 interfaces, port 53
Binding privsep
[priv]: msg PRIV_BIND received
Binding privsep
[priv]: msg PRIV_BIND received
Aug 10 07:47:11.387 listening on IPv4 interface lo0, 127.0.0.1#53
Binding privsep
[priv]: msg PRIV_BIND received
Binding privsep
[priv]: msg PRIV_BIND received
Aug 10 07:47:11.388 listening on IPv4 interface fxp0, 192.168.0.2#53
Binding privsep
[priv]: msg PRIV_BIND received
Binding privsep
[priv]: msg PRIV_BIND received
Binding locally
Binding locally
Binding privsep
[priv]: msg PRIV_BIND received
Aug 10 07:47:11.408 command channel listening on 127.0.0.1#953
Binding privsep
[priv]: msg PRIV_BIND received
Aug 10 07:47:11.409 command channel listening on ::1#953
Aug 10 07:47:11.412 using pre-chroot entropy source /dev/arandom
Aug 10 07:47:11.412 ignoring config file logging statement due to -g option
Aug 10 07:47:11.419 zone 127.in-addr.arpa/IN: loaded serial 1
Aug 10 07:47:11.422 zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1
Aug 10 07:47:11.423 dns_rdata_fromtext: master/wcs.inet:8: near eol: unexpected end of input
Aug 10 07:47:11.424 zone wcs.inet/IN: loading master file master/wcs.inet: unexpected end of input
Aug 10 07:47:11.427 zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.int/IN: loaded serial 1
Aug 10 07:47:11.430 zone localhost/IN: loaded serial 1
Aug 10 07:47:11.431 running


PS I had to add the .txt so wcs.int would upload.....
Attached Files
File Type: txt wcs.inet.txt (351 Bytes, 212 views)

Reply With Quote
  #4  
Old August 10th, 2004, 07:49 AM
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,195 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 15 h 53 m 4 sec
Reputation Power: 77
Welp, looks like it's a case of you not following directions. I think you tried to shortcut and modified your existing files to match up with my files without actually following my tutorial step by step. Anyway, here's the difference:

yours
Code:
@  1D  IN	SOA spock.wcs.inet. (
      2002022401 ; serial
      10800 ; 3h  refresh
      15 ; retry
      25200 ; 1w expire
      10800 ; 3h minimum  
)


mine
Code:
@		SOA	ns1 (		; ns1.basiczone.com is the primary server for basiczone.com
			postmaster	; contact email for basiczone.com is postmaster@basiczone.com
			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


rdata_from_text says unexpected end of line (eol) cause it expected 1 more data field. Your SOA record is incomplete.

Reply With Quote
  #5  
Old August 10th, 2004, 11:07 AM
one-man-show one-man-show is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 3 one-man-show User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
What I posted was the end result of many other bits and pieces I found elsewhere.

You are right I didnt follow your steps exactly. :-(

I'll give your solution a try later and report back.

Thanks very much....
oms

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > help please with bind9 on OpenBSD...(long)


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 6 hosted by Hostway
Stay green...Green IT