LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I think it's DNS (https://www.linuxquestions.org/questions/linux-software-2/i-think-its-dns-17614/)

king_trance 04-03-2002 12:45 PM

I think it's DNS
 
:confused: Okay I have a linux box acting as a router. I can ping my gateway and My DNS servers but i can't brows the web or ping Netbios names.


in netconf i have all the ip addresses for both ethernet cards. I also specified a host name. i can ping both the cards from other pc on the network. But unlike the linux box i can't ping dns or gateway from other client pc's.

Anyone know what other config files are responsible for DNS setup? or what else i can try.

DavidPhillips 04-03-2002 06:11 PM

You say the linux box won't browse??

this is because you do not have the dns servers in /etc/resolv.conf, or there is a firewall blocking port 53


You are saying the internal machines are not able to get past the internal interface of the linux box?

This is because you need to turn on ip forwarding

check it with this

cat /proc/sys/net/ipv4/ip_forward


it should be 1

set it like this

echo 1 > /proc/sys/net/ipv4/ip_forward


this will need to be in your startup scripts or your iptables / ipchains script.

also you will need a valid internet ip address to route to the internet.

if you only have one ip like most people you will need to setup linux to masq your internal ip's so it looks like only one machine to the internet. then the clients gateway will be the linux routers ip.

the rules are different depends on what you have, iptables or ipchains


All times are GMT -5. The time now is 04:17 PM.