PDA

View Full Version : [SOLVED] LAN DNS Resolve issues



kosinski
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.

Setup:

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
address 192.168.0.1
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255



ubuntu server -> route -n


Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 192.168.1.254 0.0.0.0 UG 100 0 0 eth0


lan_client -> /etc/resolv.conf


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



lan_client -> tracepath www.google.com


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



lan_client -> ping www.google.com


PING www.l.google.com (74.125.155.103) 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.

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

[URL="https://help.ubuntu.com/community/Router?action=AttachFile&do=view&target=ubuntu+router.tar"]