View Full Version : [SOLVED] LAN DNS Resolve issues

October 10th, 2010, 02:00 AM
I've setup an Ubuntu router and everything is working except when I try to access the internet from the lan_client. nslookup works, but it can't resolve the dns outside of the LAN. So basically it can't connect outside of the ubuntu router.


router <> ubuntu router <> switch <> lan_client

Background Info:

ubuntu server -> ipv4 forwarding has been uncommented in /etc/sysctl.conf

ubuntu server -> cat /etc/network/interfaces

# local loopback interface
auto lo
iface lo inet loopback

# WAN interface

auto eth0
iface eth0 inet dhcp
post-up iptables-restore < /etc/iptables.up.rules

# LAN interface

auto eth1
iface eth1 inet static

ubuntu server -> route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface U 0 0 0 eth0 U 0 0 0 eth1 U 1000 0 0 eth0 UG 100 0 0 eth0

lan_client -> /etc/resolv.conf

# Generated by NetworkManager
domain example.org
search example.org
nameserver # router
nameserver # ubuntu router

lan_client -> tracepath www.google.com

1: lan_client.local ( 0.404ms pmtu 1500
1: ubuntu_router.local ( 0.554ms
1: ubuntu_router.local ( 0.522ms
2: no reply
3: no reply

lan_client -> ping www.google.com

PING www.l.google.com ( 56(84) bytes of data.

--- www.l.google.com ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

Any help would be greatly appreciated. Thanks.

October 10th, 2010, 03:00 AM
Resolved. Used this to reconfigure everything: