Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Dec 2004 14:00:04 +0100 (MET)
From:      Mipam <mipam@ibb.net>
To:        freebsd-questions@freebsd.org
Cc:        mipam@ibb.net
Subject:   i'm lost in named trouble.
Message-ID:  <Pine.BSO.4.56.0412291351220.4214@ux11.ltcm.net>

next in thread | raw e-mail | index | archive | help
Hi,

I configured plenty of nameservers also with bind9, but this time
i cannot figure out what's wrong anymore, i'm lost.
When i do host 127.0.0.1, i get a normal answer.
When i do host localhost, i get a normal answer.
When i do dig localhost, i get a normal answer.
When i do dig 127.0.0.1, i get no answer and i keep waiting .... :-(
I don't know anymore what the problem is. :-(
Here are the config files:

options {
	directory	"/etc/namedb";
	pid-file	"/var/run/named/pid";
	dump-file	"/var/dump/named_dump.db";
	statistics-file	"/var/stats/named.stats";
	listen-on	{ 127.0.0.1; };
};

key "bla" {
	algorithm hmac-md5;
	secret "akjdhakdjfhaksdjfhASDFASFJASDJASDJFJASDJSEFA";
};

controls {
	inet 127.0.0.1 port 953
		allow { 127.0.0.1; } keys { "bla"; };
};

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

zone "localhost." {
	type master;
	file "master/db.localhost";
	notify no;
};

zone "0.0.127.IN-ADDR.ARPA" {
	type master;
	file "master/db.127.0.0";
	notify no;
};

;
; 127.0.0.rev
;
$TTL 86400
@	IN	SOA	localhost. root.localhost. (
			1	;serial
			28800   ;Refresh
			1440	;Retry
			3600000 ;expiry
			86400	;minimum 
		)
	IN	NS	localhost.
1	IN	PTR	localhost.

;
; db.localhost
;
$TTL 259200 
@       IN SOA   @ root.mydom.local. ( 
                        2004122901      ; serial (r.)
			28800            ; refresh
			3600             ; retry
			1209600         ; expiry
			259200 )        ; minimum
	IN NS        @
	IN A         127.0.0.1

While running dig 127.0.0.1 i captured the packets on the lo0 interface:

13:44:31.343171 IP (tos 0x0, ttl 64, id 580, offset 0, flags [none],
length: 55) 127.0.0.1.50900 > 127.0.0.1.53: [udp sum ok] 5460+ A?
127.0.0.1. (27) 13:44:36.349225 IP (tos 0x0, ttl 64, id 587, offset 0,
flags [none], length: 55) 127.0.0.1.50900 > 127.0.0.1.53: [udp sum ok]
5460+ A? 127.0.0.1. (27)

No answer as you can see. I also made a dump from what happens when i do
host 127.0.0.1 

13:45:42.903997 IP (tos 0x0, ttl 64, id 616, offset 0,
flags [none], length: 68) 127.0.0.1.57562 > 127.0.0.1.53: [udp sum ok]
60267+ PTR? 1.0.0.127.in-addr.arpa. (40) 13:45:42.904647 IP (tos 0x0, ttl
64, id 617, offset 0, flags [none], length: 121) 127.0.0.1.53 >
127.0.0.1.57562:  60267* q: PTR? 1.0.0.127.in-addr.arpa. 1/1/1
1.0.0.127.in-addr.arpa. PTR localhost. ns: [|domain]

So dig asks an A record, and host ask a PTR record.
Can anybody tell me what is wrong with my config?
I don't know anymore how to resolve the issue with dig 127.0.0.1 anymore.
What am i doing wrong??
Bye,

Mipam.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSO.4.56.0412291351220.4214>