Need a hand with DNS issue plz
Hi,
I have Slackware 8.0 installed, kernel 2.4.5, using iptables 1.2.5. I have a small home network with 3 computers, mine ( the linux box ), and two other WinXP machines.
In my linux box I have two network cards, eth0 which is connected to the cablemodem, and eth1 which is connected to a hub ( that is in turn connected to the other machines ).
I am not running BIND, I want to use the ISP's nameservers. eth0 gets its addresses via DHCP, and it works fine, I can browse good, everything is perfect. eth1 uses dhcp to assign addresses to the other machines - they get their addresses fine, everything seems ok - checks out it seems - however the windows machines that are behind me can only browse by IP! Canonical addresses don't work! I had this working the last time and I can't see what I've forgotten this time around. Here is what the windows machines report with ipconfig:
When connected to the windows machine as internet server
Host Name . . . . . . . . . . . . : joel
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Mixed
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : mshome.net
Description . . . . . . . . . . . : 3Com EtherLink 10/100 PCI TX NIC (3C905B-TX)
Physical Address. . . . . . . . . : 00-50-04-69-A5-6C
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.0.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
DHCP Server . . . . . . . . . . . : 192.168.0.1
DNS Servers . . . . . . . . . . . : 192.168.0.1
Lease Obtained. . . . . . . . . . : Sunday, February 24, 2002 7:34:16 PM
Lease Expires . . . . . . . . . . : Monday, February 25, 2002 7:34:16 PM
When connected to the linux machine as internet server
Windows IP Configuration
Host Name . . . . . . . . . . . . : joel
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Mixed
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : 3Com EtherLink 10/100 PCI TX NIC (3C
905B-TX)
Physical Address. . . . . . . . . : 00-50-04-69-A5-6C
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.0.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
DHCP Server . . . . . . . . . . . : 192.168.0.1
DNS Servers . . . . . . . . . . . : 24.153.23.67
24.153.22.66
Lease Obtained. . . . . . . . . . : Sunday, February 24, 2002 7:34:16 PM
Lease Expires . . . . . . . . . . : Monday, February 25, 2002 7:34:16 PM
There are my configuration files on the linux machine.
DHCPD.CONF
default-lease-time 86400;
max-lease-time 86400;
option routers 192.168.0.1;
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 24.153.23.67, 24.153.22.66;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.2 192.168.0.10;
}
HOSTS
# For loopbacking.
127.0.0.1 localhost
127.0.0.1 xxxxxxxx-a.slnt.phub.net.cable.rogers.com xxxxxxxx-a
# End of hosts.
RC.INET1
#! /bin/sh
#
# rc.inet1 This shell script boots up the base INET system.
#
# Attach the loopback device.
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
# eth0 interface.
/sbin/dhcpcd
# eth1 interface.
/sbin/ifconfig eth1 192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0
/sbin/route add -host 255.255.255.255 dev eth1
/usr/sbin/dhcpd eth1
# End of rc.inet1
this is what route reveals
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
255.255.255.255 * 255.255.255.255 UH 0 0 0 eth1
xx.xxx.xxx.0 * 255.255.255.128 U 0 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default tlgw23.slnt.phu 0.0.0.0 UG 0 0 0 eth0
Any help appreciated!!!
Thanks!
Alex
Last edited by Lexx; 02-25-2002 at 01:23 AM.
|