LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-23-2003, 06:46 AM   #1
Trygve
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Rep: Reputation: 0
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.
 
Old 10-23-2003, 02:34 PM   #2
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
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.
 
Old 10-23-2003, 04:31 PM   #3
DoubleOTeC
Member
 
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266

Rep: Reputation: 30
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
 
  


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 lookup Cabous Linux - Networking 11 07-18-2005 01:36 AM
Traceroute, Ping, Domain Name Server (DNS) Lookup, WHOIS, and DNS Records Lookup netoknet General 1 05-09-2005 04:43 AM
DNS lookup arsham Linux - General 2 05-07-2005 09:44 AM
DNS lookup vibhory2j Linux - Software 8 10-19-2004 11:24 AM
DNS Lookup dilberim82 Linux - Networking 3 05-30-2001 06:45 AM

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

All times are GMT -5. The time now is 08:48 PM.

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