DNS Bind9.1.2 can't ping

Michael Fortenberry fortenbm at hvc.rr.com
Fri Jun 1 04:22:11 UTC 2001


Hi all,

I have been reading the archives for better than two weeks now trying to get
all my bugs worked out and my BIND working. I started out with 9.1.0 and
upgraded to 9.1.2 in an attempt to resolve issues.

I thought I had this licked yesterday because I finally got everything to
say
that it runs successfully. In other words, /etc/rc.d/init.d/network restart,
/etc/rc.d/init.d/named restart, rndc restart all produce successfuly output
now, BUT I still can't ping from my Windoze boxes to the internet through
my RedHat Linux 7.1 gateway.

I have copied all my config files below along with the output from network,
named and rndc starts. I do not know what to do next and I am beginning to
feel clueless.

Can anyone tell me what is wrong?
Michael

My configuration is 

	Linux RedHat 7.1 running BIND 9.1.2 (started with 9.1.0)
	eth0	192.168.1.1 onboot=yes
	eth1	dhcp onboot=yes

	Win98 SE
	ipaddr 192.168.1.10
	configured to static ipaddr, Gateway 192.168.1.1
	DNS tried both enabled to 192.168.1.1 || 24.92.226.13, etc.
	also tried disabling DNS

	WinME
	ipaddr 192.168.1.20
	configured to static ipaddr, Gateway 192.168.1.1
	DNS tried both enabled to 192.168.1.1 || 24.92.226.13, etc.
	also tried disabling DNS

	The Cable modem goes to eth1 card on the Linux box. The eth0 card
goes to
	a four port hub. The Windoze boxes go to the same hub.

I can ping from my Windows boxes to 192.168.1.1 and to the external ipaddr
as supplied by my Road Runner cable modem, currently 24.169.130.101 , BUT
I cannot ping any other address such as the nameservers on the ISP 
24.92.226.13 and 24.92.225.171 . A ping to www.internic.net also fails.

/etc/rc.d/init.d/network restart		produces all [OK]s and the
following
/var/log/messages output

Jun  1 16:30:03 ragnarok network: Shutting down interface eth0:  succeeded
Jun  1 16:30:03 ragnarok ifdown: ****  dhcpcd: not running
Jun  1 16:30:04 ragnarok network: Shutting down interface eth1:  succeeded
Jun  1 16:30:04 ragnarok modprobe: modprobe: Can't locate module ppp0
Jun  1 16:30:04 ragnarok sysctl: net.ipv4.ip_forward = 0
Jun  1 16:30:04 ragnarok network: Disabling IPv4 packet forwarding:
succeeded
Jun  1 16:30:04 ragnarok sysctl: net.ipv4.ip_forward = 1
Jun  1 16:30:04 ragnarok sysctl: net.ipv4.conf.all.rp_filter = 1
Jun  1 16:30:04 ragnarok sysctl: kernel.sysrq = 0
Jun  1 16:30:04 ragnarok network: Setting network parameters:  succeeded
Jun  1 16:30:04 ragnarok ifup: ifcfg-eth0: Host name lookup failure
Jun  1 16:30:04 ragnarok network: Bringing up interface lo:  succeeded
Jun  1 16:30:04 ragnarok kernel: eth0: Setting half-duplex based on
auto-negotiated partner ability 0000.
Jun  1 16:30:04 ragnarok ifup: ifcfg-eth0: Host name lookup failure
Jun  1 16:30:04 ragnarok ifup: ifcfg-eth0: Host name lookup failure
Jun  1 16:30:04 ragnarok network: Bringing up interface eth0:  succeeded
Jun  1 16:30:04 ragnarok ifup: Determining IP information for eth1...
Jun  1 16:30:04 ragnarok kernel: eth1: Setting half-duplex based on
auto-negotiated partner ability 0000.
Jun  1 16:30:04 ragnarok ifup: device is eth1
Jun  1 16:30:04 ragnarok ifup:  done.
Jun  1 16:30:05 ragnarok ifup: SIOCADDRT: Network is unreachable
Jun  1 16:30:05 ragnarok network: Bringing up interface eth1:  succeeded

/etc/rc.d/init.d/named start		products all [OK]s and the following
/var/log/messages output


Jun  1 16:33:40 ragnarok named[22639]: starting BIND 9.1.0 -u named
Jun  1 16:33:40 ragnarok named: named startup succeeded
Jun  1 16:33:40 ragnarok named[22639]: using 1 CPU
Jun  1 16:33:40 ragnarok named[22643]: loading configuration from
'/etc/named.conf'
Jun  1 16:33:40 ragnarok named[22643]: the default for the 'auth-nxdomain'
option is now 'no'
Jun  1 16:33:40 ragnarok named[22643]: no IPv6 interfaces found
Jun  1 16:33:40 ragnarok named[22643]: listening on IPv4 interface lo,
127.0.0.1#53
Jun  1 16:33:40 ragnarok named[22643]: listening on IPv4 interface eth0,
192.168.1.1#53
Jun  1 16:33:40 ragnarok named[22643]: listening on IPv4 interface eth1,
24.169.130.101#53
Jun  1 16:33:40 ragnarok named[22643]: command channel listening on
0.0.0.0#953
Jun  1 16:33:40 ragnarok named[22643]: running

rndc reload 	produces rndc: reload command successful

ifconfig			then produces the following output

eth0      Link encap:Ethernet  HWaddr 00:50:FC:2B:41:B7  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          Interrupt:9 Base address:0xa000 

eth1      Link encap:Ethernet  HWaddr 00:50:FC:2B:41:A4  
          inet addr:24.169.130.101  Bcast:255.255.255.255
Mask:255.255.252.0
          UP BROADCAST NOTRAILERS RUNNING  MTU:1500  Metric:1
          RX packets:234 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          Interrupt:5 Base address:0xc000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1428 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1428 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 


// CONFIGURATION FILES
// even though I keep changing this file to what
// was suggested in HOW-TOs, it always gets changed
// from this
// 	domain myasgaard.com
// 	nameserver 127.0.0.1
// back to what appears below when I restart the network.
// I changed permissions to 444 but it still gets overwritten
// If I change it back to
//	domain myasgaard.com
//	nameserver 127.0.0.1
// dig finds 127.0.0.1 and all hosts on the 192.168.1 network
// but I still can't ping a nameserver from my Windows boxes.

/etc/resolv.conf

domain hvc.rr.com
nameserver 24.92.226.13
nameserver 24.92.226.171
search hvc.rr.com

/etc/rndc.conf

key rndc_key {
	algorithm hmac-md5;
	secret
"HDmYSGOOtKqpgcdVTuRnzNWuBzwGKdxFBPgrdjVlwiBXqkjeYhQLClBVrXFX";
};

server localhost {
	key rndc_key;
};

options {
	default-server  localhost;
	default-key     rndc_key;
};


/etc/named.conf

## named.conf - configuration for bind
#
# Generated automatically by bindconf, alchemist et al.

acl bogusnets {	0.0.0/8; 1.0.0.0/8; 2.0.0.0/8;
						192.0.2.0/24; 224.0.0.0/3;
10.0.0.0/8;
						172.16.0.0/12;
192.168.0.0/16;
};

key rndc_key {
	algorithm hmac-md5;
	secret
"HDmYSGOOtKqpgcdVTuRnzNWuBzwGKdxFBPgrdjVlwiBXqkjeYhQLClBVrXFX";
};

controls {
	inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
};

options { 
	directory "/var/named/"; 	
	dump-file "named_dump.db";
	pid-file "named.pid";
	version "This is not the port you're looking for.";

	forward first;
	forwarders {
		24.92.226.13;
		24.92.226.171;
	};

	allow-query { any; };

	blackhole { bogusnets; };
};

logging {
	channel "default_debug" {
		file "named.run";
		severity debug 999;
	};
	// processing of client request
	category client { default_debug; };
	// named.conf parsing and processing
	category config { default_debug; };
	// This is the default for any category not specifically defined
	//category default { default_debug; };
	// The catch-all. Anything without a category of it's own
	//category general { default_debug; };
	// Uncomment if you don't want to know about lame server
	category lame-servers { null; };
	category notify { default_debug; };
	category network { default_debug; };
	category resolver { default_debug; };
	//category security { default_debug; };
	//category update { default_debug; };
	category queries { default_debug; };
	category xfer-in { default_debug; };
	category xfer-out { default_debug; };
};

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

zone  "0.0.127.in-addr.arpa" { 
	type master; 
	file  "0.0.127.in-addr.arpa.zone"; 
};

zone  "1.168.192.in-addr.arpa" { 
	type master; 
	file  "1.168.192.in-addr.arpa.zone"; 
	notify no;
};

zone  "myasgaard.com" { 
	type master; 
	file  "myasgaard.com.zone"; 
	notify no;
};


// ZONE FILES

/var/named/0.0.127.in-addr.arpa.zone

$TTL 86400
$ORIGIN 0.0.127.in-addr.arpa.
@	IN	SOA	ragnarok.myasgaard.com.	root.myasgaard.com. (
			4 ; serial
			28800 ; refresh
			7200 ; retry
			604800 ; expire	
			86400 ; ttk
			)
 	  	NS		ragnarok.myasgaard.com.
1		PTR	localhost.


/var/named/1.168.192.in-addr.arpa.zone

$TTL 86400
$ORIGIN 1.168.192.in-addr.arpa.
@		IN		SOA	ragnarok.myasgaard.com.
root.myasgaard.com. (
						3 ; serial
						28800 ; refresh
						7200 ; retry
						604800 ; expire	
						86400 ; ttk
						)
				NS		ragnarok.myasgaard.com.

1				PTR	ragnarok.myasgaard.com.
10				PTR	valhalla.myasgaard.com.
20				PTR	hera.myasgaard.com.


/var/named/myasgaard.com.zone

;
; Zone file for myasgaard.com
;
; The fill zone file
;
$TTL 86400
$ORIGIN myasgaard.com.
@					IN	SOA
ragnarok.myasgaard.com. root.myasgaard.com. (
						3 ; serial
						28800 ; refresh
						7200 ; retry
						604800 ; expire	
						86400 ; ttl
						)
;
					TXT		"myasgaard.com, your
DNS consultant wannabe"
					NS		ragnarok
					MX		10	mail
;
localhost				A		127.0.0.1
;
ragnarok				A		192.168.1.1
					MX		10	mail
					HINFO		"Pentium III" "Linux
2.4"
www					CNAME		ragnarok
ftp					CNAME		ragnarok
mail					CNAME		ragnarok
;
valhalla					A		192.168.1.10
					MX		10	mail
					HINFO		"Pentium III" "Win98
SE"
;
hera					A		192.168.1.20
					MX		10	mail
					HINFO		"Pentium III" "Win98
ME"




-- Binary/unsupported file stripped by Listar --
-- Type: application/ms-tnef
-- File: winmail.dat




More information about the bind-users mailing list