LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-25-2002, 01:20 AM   #1
Lexx
LQ Newbie
 
Registered: Feb 2002
Distribution: Slackware 8.0 (2.4.5)
Posts: 16

Rep: Reputation: 0
Unhappy 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.
 
Old 02-25-2002, 01:56 AM   #2
Lexx
LQ Newbie
 
Registered: Feb 2002
Distribution: Slackware 8.0 (2.4.5)
Posts: 16

Original Poster
Rep: Reputation: 0
oh .. hehe and here's some more details


RESOLV.CONF
nameserver 24.153.22.67
nameserver 24.153.23.66
search slnt.phub.net.cable.rogers.com
domain rogers.com

my iptables rules
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A INPUT -i eth0 -m state --state NEW,INVALID -j DROP
iptables -A FORWARD -i eth0 -m state --state NEW,INVALID -j DROP


Thanks again!
Helpppppppppppppp!
Alex
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS issue or caching issue? AZDAVE Linux - Networking 7 10-02-2004 01:28 AM
Plz.. Help me (DNS) abimanyu007 Linux - Networking 5 09-09-2004 11:31 AM
DNS not responding plz reply nitin34847 Linux - Networking 3 05-23-2004 03:36 PM
MAJOR usb issue PLZ help. Shad.. Linux - Newbie 0 03-19-2004 06:43 PM
POP3 issue --Urgent Help plz saravanan1979 Linux - Networking 6 01-25-2002 05:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration