|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
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..... |
|
#4
|
||||
|
||||
|
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. |
|
#5
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > help please with bind9 on OpenBSD...(long) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|