Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
BIND9 cuasing me to loose my sanity
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
stdPikachu
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 254
Location: UK

PostPosted: Fri Oct 27, 2006 2:53 pm    Post subject: BIND9 cuasing me to loose my sanity Reply with quote

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
View user's profile Send private message
SLBMEH
Apprentice
Apprentice


Joined: 16 Aug 2003
Posts: 299
Location: Pittsburgh, PA

PostPosted: Fri Oct 27, 2006 4:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Fri Oct 27, 2006 7:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Janne Pikkarainen
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1143
Location: Helsinki, Finland

PostPosted: Sat Oct 28, 2006 9:49 am    Post subject: Re: BIND9 cuasing me to loose my sanity Reply with quote

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
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Sat Oct 28, 2006 7:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
nobspangle
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1318
Location: Manchester, UK

PostPosted: Sat Oct 28, 2006 8:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum