View previous topic :: View next topic |
Author |
Message |
stdPikachu Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Blade Runner/movie_blade_runner_howl.gif)
Joined: 10 Mar 2004 Posts: 254 Location: UK
|
Posted: Fri Oct 27, 2006 2:53 pm Post subject: BIND9 cuasing me to loose my sanity |
|
|
Howdy. I'm trying to set up BIND on my LAN as a precursor to Kerberos/LDAP, and it's driving me utterly nuts.
It's refusing to load my zone file due to "unexpected end of input" which I completely can't track down.
Here's the excerpt from the logs: Code: | 27-Oct-2006 15:46:57.245 dns_rdata_fromtext: pri/snafu.local:7: near eol: unexpected end of input
27-Oct-2006 15:46:57.245 zone snafu.local/IN: loading master file pri/snafu.local: unexpected end of input |
And the zonefile in question: Code: | $TTL 600
@ IN SOA prospero.snafu.local. (
2006102716
3600
600
86400
3600 )
TXT ". : s n a f u . l o c a l : ."
NS prospero
MX 10 prospero
; Hosts
localhost A 127.0.0.1
prospero IN A 192.168.1.30
banquo IN A 192.168.1.20
tybalt IN A 192.168.1.6
ariel IN A 192.168.1.1
tamora IN A 192.168.1.10
;_kerberos IN TXT "SNAFU.LOCAL"
;_kerberos-master._udp IN SRV 0 0 88 prospero
;_kerberos-adm._tcp IN SRV 0 0 749 prospero
;_kpasswd._udp IN SRV 0 0 464 Kerberos
;_kerberos._udp IN SRV 0 0 88 prospero
; IN SRV 0 0 88 banquo
;_ldap._tcp.snafu.local IN SRV 0 0 389 prospero
; IN SRV 0 0 389 banquo |
Can anyone spot any glaring mistakes? Particularly along the end of line 7...?! It's already driven me half-crazy today what with it's refusal to accept values like "1h" instead of "3600" (why is this not the case in any of the BID tuts I've seen), and I'm ready to throw the computer out of the window...! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
SLBMEH Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/26821396947c398db8a9d1.gif)
Joined: 16 Aug 2003 Posts: 299 Location: Pittsburgh, PA
|
Posted: Fri Oct 27, 2006 4:59 pm Post subject: |
|
|
not sure if this is relevant... but there is no address for the hostmaster's email...
in your SOA you should have
$ORIGIN or @ (same thing) IN SOA your nameserver and your hostmaster address
Code: | $TTL 600
@ IN SOA ns.nameserver.net. hostmaster.company.com. (
|
_________________ Steve - Semper Fi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kashani Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/9629732313ee51df8c5935.jpg)
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Fri Oct 27, 2006 7:07 pm Post subject: |
|
|
Run named-checkzone against your zone files. It's pretty good about find what's wrong.
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Janne Pikkarainen Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/10433783463f526aba4144d.jpg)
Joined: 29 Jul 2003 Posts: 1143 Location: Helsinki, Finland
|
Posted: Sat Oct 28, 2006 9:49 am Post subject: Re: BIND9 cuasing me to loose my sanity |
|
|
stdPikachu wrote: | Code: |
TXT ". : s n a f u . l o c a l : ."
NS prospero
MX 10 prospero
|
|
Should those lines be instead
Code: |
IN TXT ". : s n a f u . l o c a l : ."
IN NS prospero
IN MX 10 prospero |
Just guessing, I don't have ATM anything where to check at. _________________ Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.". |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kashani Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/9629732313ee51df8c5935.jpg)
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Sat Oct 28, 2006 7:42 pm Post subject: |
|
|
The IN is usually optional, but I like to include it. One other thing that might be an issue is the NS line itself. Normally it's a good idea to use the full name rather than just the hostname.
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nobspangle Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/210249061640b0c1d626f5b.gif)
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Sat Oct 28, 2006 8:03 pm Post subject: |
|
|
SLBMEH wrote: | not sure if this is relevant... but there is no address for the hostmaster's email...
in your SOA you should have
$ORIGIN or @ (same thing) IN SOA your nameserver and your hostmaster address
Code: | $TTL 600
@ IN SOA ns.nameserver.net. hostmaster.company.com. (
|
|
I would guess this is almost certainly the problem since the error is unexpected end of input. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|