Date: Tue, 3 Dec 2002 17:25:00 +0000 From: User Thrawn <thrawn@linux.nu> To: freebsd-stable@freebsd.org Subject: Named problem Message-ID: <20021203172500.GA23429@dasboot.birch.se>
next in thread | raw e-mail | index | archive | help
Hi,
Im having some problems to get named/bind working correctly. I can only resolve 127.0.0.1 and other domains/ip addresses that im not master for.
Im using bind9 from ports, Im using version 9.2.1.
When i try to resolv localhost it says:
> localhost
Server: localhost
Address: 127.0.0.1
*** localhost can't find localhost: Non-existent host/domain
>
I start named from /etc/namedb/master/usr/sbin, with the command:
named -c /etc/namedb/named.conf -t /etc/namedb/master -u bind and then I get this in messages:
Dec 3 17:01:18 dasboot named[23499]: starting BIND 9.2.1 -c /etc/namedb/named.conf -t /etc/namedb/master -u bind
Dec 3 17:01:18 dasboot named[23499]: command channel listening on 127.0.0.1#953
Dec 3 17:01:18 dasboot named[23499]: command channel listening on ::1#953
I can only run the nslookup client from the same box im sitting on it does not work from any other host. But netstat -n | grep 53, givs me this output:
tcp6 0 0 ::1.953 *.* LISTEN
tcp4 0 0 127.0.0.1.953 *.* LISTEN
tcp4 0 0 62.66.14.92.53 *.* LISTEN
tcp4 0 0 127.0.0.1.53 *.* LISTEN
tcp4 0 0 192.168.0.1.53 *.* LISTEN
udp4 0 0 62.66.14.92.53 *.*
udp4 0 0 127.0.0.1.53 *.*
udp4 0 0 192.168.0.1.53 *.*
I will paste my configuration files here:
Here is named.conf:
options {
directory "/etc/namedb";
forwarders {
212.242.40.3;
};
};
host { any; } {
topology {
127.0.0.0/8 192.168.0.0/24;
};
};
zone "." {
type hint;
file "named.root";
};
zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "localhost.rev";
allow-query { 127.0.0.1/32; 192.168.0.0/24;
};
};
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 "localhost-v6.rev";
allow-query { 127.0.0.1/32; 192.168.0.0/24;
};
};
zone "birch.se" {
type master;
file "db.birch.se";
# file "db.0.168.192";
allow-query { 127.0.0.1/32; 192.168.0.0/24;
};
};
zone "0.168.192.in-addr.arpa" {
type master;
file "db.0.168.192";
# file "db.birch.se";
allow-query { 127.0.0.1/32; 192.168.0.0/24;
};
};
--------------------EOF---------------------------
And here is db.0.168.192:
PROTO.localhost-v6.rev localhost-v6.rev named.root
PROTO.localhost.rev localhost.rev named.run
db.0.168.192 make-localhost
db.birch.se named.conf
dasboot/etc/namedb/master/etc/namedb% cat db.0.168.192 5:19PM
$TTL 3600
birch.se. IN SOA ns.birch.se. thrawn.ns.birch.se. (
20020813 ; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS ns.birch.se.
dasboot IN A 192.168.0.1
setiathome IN A 192.168.0.10
thrawn IN A 192.168.0.201
ns IN A 192.168.0.1
ns2 IN A 192.168.0.10
---------------EOF--------------------------
Here is db.birch.se:
$TTL 3600
0.168.192.in-addr.arpa. IN SOA ns.birch.se. thrawn.ns.birch.se. (
20020813 ; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
3600 ) ; Minimum
1 IN NS ns.birch.se.
1 IN PTR dasboot.birch.se.
10 IN PTR setiathome.birch.se.
201 IN PTR thrawn.birch.se.
----------------EOF-----------------------------
Here is localhost-v6.rev:
$TTL 3600
@ IN SOA dasboot.birch.se. root.dasboot.birch.se. (
20021128 ; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS dasboot.birch.se.
IN PTR localhost.
IN PTR localhost.
----------------EOF-----------------------------
And at last localhost.rev:
$TTL 3600
@ IN SOA dasboot.birch.se. root.dasboot.birch.se. (
20021128 ; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS dasboot.birch.se.
1 IN PTR localhost.
----------------EOF----------------------------
Hmm thats about it, tell me if you need som more info and I will gladly tell you. I don't see what the problem is here... honestly. I have checked the named config instructions in the FreeBSD handbook but I can not still get it to work right. I must be something silly that I have forgotten but I can't figure that out.
Mvh Mattias Björk
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021203172500.GA23429>
