Hi Nick,
   I swear.., this thing was working after I had a fiddle this morning
after sending my last e-mail off to you. Now I can't run nslookup on my
domain:
# nslookup www.vickiandstacey.com
Server:  localhost.vickiandstacey.com
Address:  127.0.0.1

*** localhost.vickiandstacey.com can't find www.vickiandstacey.com:
Non-existent host/domain
# 

Although I *am* able to resolve remote address okay:
# nslookup www.freebsd.org
Server:  localhost.vickiandstacey.com
Address:  127.0.0.1

Non-authoritative answer:
Name:    www.freebsd.org
Address:  216.136.204.117
# 

Don't know why this suddenly stopped working, but take a look at what
I've got here:-

named.conf:
// If you enable a local name server, don't forget to enter 127.0.0.1
// into your /etc/resolv.conf so this server will be queried first.
// Also, make sure to enable it in /etc/rc.conf.

zone "." {
        type hint;
        file "named.root";
};

zone "0.0.127.IN-ADDR.ARPA" {
        type master;
        file "master/localhost.rev";
};

zone
"1.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 "master/localhost-v6.rev";
};

And my Zone statements:

zone "vickiandstacey.com" in {
        type master;
        file "master/vickiandstacey.com.db";
        allow-query{ 127/8; 192.168.1/24; };
};

zone "1.168.192.in-addr.arpa" in {
        type master;
        file "master/192.168.1.db";
        allow-query{ 127/8; 192.168.1/24; };
};

This is what I thought was the solution for the zone files:

$TTL 3600
vickiandstacey.com.     IN      SOA     Demon.vickiandstacey.com.      
postmaster.vickiandstacey.com. (
                                2002101605      ; Serial
                                10800           ; Refresh
                                3600            ; Retry
                                604800          ; Expire
                                86400 )         ; Minimum TTL

@                       IN      NS      Demon.vickiandstacey.com.

localhost               IN      A       127.0.0.1
Demon                   IN      A       192.168.1.8
snowball                IN      A       192.168.1.6


And for the reverse resolution:
$TTL 3600

1.168.192.in-addr.arpa. IN      SOA     Demon.vickiandstacey.com.      
postmaster.vickiandstacey.com. (
                        2002101605      ; Serial
                        10800           ; Refresh
                        3600            ; Retry
                        604800          ; Expire
                        86400 )         ; Minimum TTL

@       IN      NS      Demon.vickiandstacey.com.

8       IN      PTR     Demon.vickiandstacey.com.
6       IN      PTR     snowball.vickiandstacey.com.


And /etc/resolv.conf:
# cat /etc/resolv.conf
domain  vickiandstacey.com
search          vickiandstacey.com
nameserver      127.0.0.1
nameserver      158.43.240.4
nameserver      158.43.240.3
# 

I'm *definitely* at a loss here. Why would it work, and then stop????

Thanks for the suggestions., do come back to me with any ideas that you
might have.

Stacey



On Thu, 2002-10-17 at 07:10, Nick Rogness wrote:
> On 16 Oct 2002, Stacey Roberts wrote:
> 
> > Hi Nick,
> >    I wonder if you could take a look at my bind config files, with a
> > view to helping me resolve the errors I get after I restarted named
> > here.
> 
>       Sure.
> 
> 
> >
> > I editted named.conf and included zone information for my private net:
> >
> > zone "vickiandstacey.com" in {
>                           ^^
> 
>       Don't believe you need the in here.
> 
> 
> >         type master;
> >         file "master/vickiandstacey.com.db";
> >         allow-query{ 127/8; 192.168.1/24; };
> > };
> >
> > zone "1.168.192.in-addr.arpa" in {
> >         type master;
> >         file "master/192.168.1.db";
> >         allow-query{ 127/8; 192.168.1/24; };
> > };
> >
> > And created respective zone and reverse addressing files:
> >
> > # more vickiandstacey.com.db
> > $TTL 864000
> > $ORIGIN vickiandstacey.com.
> > vickiandstacey.com      IN      SOA     Demon.vickiandstacey.com.
>                   ^^
> 
>       Missing a . at the end of vickiandstacey.com.  You could just use:
> 
>       @       IN      SOA demon.vickiandstacey.com.   etc etc
> 
>       The "@" is a shortcut for the current ORIGIN.
> 
> 
> > postmaster.vickiandstacey.com. (
> >                                 5               ; Serial
> >                                 10800           ; Refresh
> >                                 3600            ; Retry
> >                                 604800          ; Expire
> >                                 86400 )         ; Minimum TTL
> >
> >                         IN      NS      Demon.vickiandstacey.com.
> >
> > $ORIGIN vickiandstacey.com.
> > Demon                   IN      A       192.168.1.8
> > snowball                IN      A       192.168.1.6
> > #
> >
> > # more 192.168.1.db
> > $TTL 864000
> > $ORIGIN 168.192.in-addr.arpa.
> > 1       IN      SOA     Demon.vickiandstacey.com.
> ^^^^
> 
>       This is incorrect.  I would just put an @ here.
> 
> > postmaster.vickiandstacey.com. (
> >                         5               ; Serial
> >                         10800           ; Refresh
> >                         3600            ; Retry
> >                         604800          ; Expire
> >                         86400 )         ; Minimum TTL
> >
> >         IN      NS      Demon.vickiandstacey.com.
> >
> > $ORIGIN 1.168.192.in-addr.arpa.
> > 8       IN      PTR     Demon.vickiandstacey.com.
> > 6       IN      PTR     snowball.vickiandstacey.com.
> > #
> >
> > Thinking that this was sufficient for my requirements, I then proceeded
> > to restart named (which appeared to go without errors to screen), but
> > got the following in /var/log/messages:
> >
> > Oct 16 21:29:06 Demon named[133]: reloading nameserver
> > Oct 16 21:29:06 Demon named[133]: db_load could not open: localhost.rev:
> > No such file or directory
> 
>       This says the nameserver couldn't find the file localhost.rev
> 
> > Oct 16 21:29:06 Demon named[133]: db_load could not open:
> > localhost-v6.rev: No such file or directory
> 
>       This says the nameserver couldn't find the file localhost-v6.rev
> 
> 
> 
> > Oct 16 21:29:06 Demon named[133]: master/vickiandstacey.com.db:3: SOA
> > for "vickiandstacey.com.vickiandstacey.com" not at zone top
> > "vickiandstacey.com"
> 
>       This is because of the missing "." in the SOA line.  See above.
> 
> > Oct 16 21:29:06 Demon named[133]: Zone "vickiandstacey.com" (file
> > master/vickiandstacey.com.db): no NS RRs found at zone top
> 
>       See above.
> 
> > Oct 16 21:29:06 Demon named[133]: master zone "vickiandstacey.com" (IN)
> > rejected due to errors (serial 5)
> 
>       See above.
> 
>       Everything else looks functional, so fix those missing . and you
>       should be golden.
> 
> 
> Nick Rogness <[EMAIL PROTECTED]>
> -
>  "Wouldn't it be great if we could answer people with a
>   kick to the crotch?"  [EMAIL PROTECTED]
> 
> 
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to