From owner-freebsd-questions@FreeBSD.ORG Wed Dec 29 13:00:14 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E76716A4CE for ; Wed, 29 Dec 2004 13:00:14 +0000 (GMT) Received: from ux11.ltcm.net (ux11.ltcm.net [64.215.98.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 918A843D39 for ; Wed, 29 Dec 2004 13:00:13 +0000 (GMT) (envelope-from mipam@ibb.net) Received: from ux11.ltcm.net (mipam@localhost.ltcm.net [IPv6:::1]) by ux11.ltcm.net (8.12.9/8.12.9/UX11TT) with ESMTP id iBTD0595000592; Wed, 29 Dec 2004 14:00:05 +0100 (MET) Received: from localhost (mipam@localhost) by ux11.ltcm.net (8.12.9/8.12.9/Submit) with ESMTP id iBTD047r026222; Wed, 29 Dec 2004 14:00:05 +0100 (MET) X-Authentication-Warning: ux11.ltcm.net: mipam owned process doing -bs Date: Wed, 29 Dec 2004 14:00:04 +0100 (MET) From: Mipam X-X-Sender: mipam@ux11.ltcm.net To: freebsd-questions@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: mipam@ibb.net Subject: i'm lost in named trouble. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Dec 2004 13:00:14 -0000 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.