Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-23-2003, 06:46 AM
|
#1
|
LQ Newbie
Registered: Oct 2003
Posts: 9
Rep:
|
Cant lookup dns .
I am currently using redhat as a router, it gets an ip from my isp at eth0 and the dhcp is active at eth1. now the win2k box recieves an IP, and is able to ping IPs on the net, but It cant resolve names.. how do I fix this? domain-name-servers has a valid address, here is my iptables script if it helps:
#!/bin/sh
IPTABLES=/sbin/iptables
echo "1" > /proc/sys/net/ipv4/ip_forward
$IPTABLES -P INPUT ACCEPT
$IPTABLES -F INPUT
$IPTABLES -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A INPUT -m state --state NEW -i ! eth0 -j ACCEPT
$IPTABLES -A INPUT -j DROP
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD DROP
$IPTABLES -F FORWARD
$IPTABLES -t nat -F
$IPTABLES -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -ACCEPT
$IPTABLES -A FORWARD -i eth1 -o eth0 -j ACCEPT
$IPTABLES -A FORWARD -j LOG
$IPTABLES -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Thanks.
|
|
|
10-23-2003, 02:34 PM
|
#2
|
Member
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251
Rep:
|
It seems your W2k box doesn't know where to look for a DNS server.
Check that the DNS setting on the W2k box points to the nameserver your Linux box uses.
|
|
|
10-23-2003, 04:31 PM
|
#3
|
Member
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266
Rep:
|
u said u have dhcp on eht1....
within the dhcp conf file there is a live saying
"option domain-name-servers"
incldeu on this line...ur machines ip..as well as the nameserver(s) of ur ISP....
as a result the the win2k box will look for all these adresses for ns lookup.
worked and was a great solution for me....
let i know
|
|
|
All times are GMT -5. The time now is 08:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|