unknown host with bind 9.3.1

Brett brettcarr at ripe.net
Tue Apr 19 10:22:32 UTC 2005


On Tue, 19 Apr 2005, Neil Muller wrote:

> Hi,
>
> I have downloaded and compiled with all defaults bind 9.3.1 from isc.org
> sources to test on local test network before installing on main system.
> The program is installed in /usr/local.
>
> When I start named using /usr/local/sbin/named -u named the logs show it
>   starts ok and dig <hostname> produces expected output but if I ping
> <hostname> for the same host I get "unknown host". Obviously I have
> missed something but I can't see what (need stronger glasses?).
>
> Can anyone help? I've attached output from /var/log/messages plus dig
> and ping results also my named.conf, nsswitch.conf and local forward and
> reverse zone files.
>
> Any help will be appreciated.


Where does your /etc/resolv.conf point to ?

Brett

-- 
Brett Carr				Ripe Network Coordination Centre
					Amsterdam


>
> Thanks,
>
> Neil
>
>
> ***** /var/log/messages
>
> Apr 19 19:28:21 lear named[6006]: starting BIND 9.3.1 -u named
> Apr 19 19:28:21 lear named[6006]: loading configuration from
> '/etc/named.conf'
> Apr 19 19:28:21 lear named[6006]: listening on IPv4 interface lo,
> 127.0.0.1#53
> Apr 19 19:28:21 lear named[6006]: listening on IPv4 interface eth0,
> 192.168.1.126#53
> Apr 19 19:28:21 lear named[6006]: listening on IPv4 interface eth1,
> 192.168.1.125#53
> Apr 19 19:28:21 lear named[6006]: command channel listening on 127.0.0.1#953
> Apr 19 19:28:21 lear named[6006]: command channel listening on ::1#953
> Apr 19 19:28:21 lear named[6006]: lwres listening on 127.0.0.1#921
> Apr 19 19:28:21 lear named[6006]: lwres listening on 192.168.1.126#921
> Apr 19 19:28:21 lear named[6006]: lwres listening on 192.168.1.125#921
> Apr 19 19:28:21 lear named[6006]: zone 0.0.127.in-addr.arpa/IN: loaded
> serial 2005041901
> Apr 19 19:28:21 lear named[6006]: zone 1.168.192.in-addr.arpa/IN: loaded
> serial 2005041901
> Apr 19 19:28:21 lear named[6006]: zone testdomain.local/IN: loaded
> serial 2005041901
> Apr 19 19:28:21 lear named[6006]: zone localhost/IN: loaded serial
> 2005041901
> Apr 19 19:28:21 lear named[6006]: running
>
>
>
> ***** ping a host
>
> lear:~ # ping hamlet.testdomain.local
> ping: unknown host hamlet.testdomain.local
>
>
> ***** dig the same host as with ping
>
> lear:~ # dig hamlet.testdomain.local
>
> ; <<>> DiG 9.3.1 <<>> hamlet.testdomain.local
> ;; global options:  printcmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14646
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
>
> ;; QUESTION SECTION:
> ;hamlet.testdomain.local.         IN      A
>
> ;; ANSWER SECTION:
> hamlet.testdomain.local.  86400   IN      A       192.168.1.125
>
> ;; AUTHORITY SECTION:
> testdomain.local.         86400   IN      NS      lear.testdomain.net.
>
> ;; Query time: 1 msec
> ;; SERVER: 192.168.1.126#53(192.168.1.126)
> ;; WHEN: Tue Apr 19 19:36:13 2005
> ;; MSG SIZE  rcvd: 86
>
>
> ***** /etc/nsswitch.conf (part)
> hosts:	files dns
> networks:	files dns
>
>
> ***** named.conf
> options {
> 	allow-transfer {none; };
> 	directory "/var/named";
> 	pid-file "/var/run/named/named.pid";
> 	allow-query { any; };
> 	query-source address * port 53;
> };
>
> logging {
> 	channel update_debug {
> 		file "/var/log/named_update_debug.log";
> 		severity debug 3;
> 		print-category yes;
> 		print-severity yes;
> 		print-time yes;
> 	};
> 	channel security_info {
>                   file "/var/log/named_security_info.log";
>                   severity  info;
>                   print-category yes;
>                   print-severity yes;
>                   print-time     yes;
>          };
> 	category update { update_debug; };
> 	category security { security_info; };
> };
> lwres {
> 	listen-on { 127.0.0.1; 192.168.1.126; 192.168.1.125; };
> 	search { "testdomain.local"; };
> };
>
> zone "." {
> 	type hint;
> 	file "root.db";
> };
>
> zone "localhost" {
> 	type master;
> 	file "localhost.db";
> 	notify no;
> };
>
> zone "0.0.127.in-addr.arpa" {
> 	type master;
> 	file "localhost-rev.db";
> 	notify no;
> };
>
> zone "testdomain.local" {
> 	type master;
> 	file "testdomain.db";
> 	forwarders {};
> 	notify no;
> };
>
> zone "1.168.192.in-addr.arpa" {
> 	type master;
> 	file "testdomain-rev.db";
> 	forwarders {};
> 	notify no;
> };
>
>
>
> ***** local forward zone
> $TTL 86400
> $ORIGIN testdomain.local.
> @	1D	IN	SOA lear.testdomain.local. root.testdomain.local. (
> 				2005041901 ; serial
> 				3H ; refresh
> 				15 ; retry
> 				1w ; expire
> 				3h ; minimum
> 			);
> 	IN	NS	lear.testdomain.net.
> 	IN	MX	10 mail.testdomain.local.
> ; server host definitions
> lear	IN	A	192.168.1.126;
> hamlet	IN	A	192.168.1.125;
> www	IN	CNAME	lear.testdomain.local.
> ftp	IN	CNAME	hamlet.testdomain.local.
> ; non-server host here
>
>
>
> **** local reverse zone
> $TTL 86400
> $ORIGIN 1.168.192.IN-ADDR.ARPA.
> @	1D	IN	SOA lear.testdomain.local. root.testdomain.local. (
> 				2005041901 ; serial
> 				3H ; refresh
> 				15 ; retry
> 				1w ; expire
> 				3h ; minimum
> 			);
> 	IN	NS	lear.testdomain.local.
> ; server host definitions
> 126	IN	PTR	lear.testdomain.local.
> 125	IN	PTR	hamlet.testdomain.local.
>
>
>
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.9.16 - Release Date: 18/04/2005
>
>



More information about the bind-users mailing list