Can't resolve dns across vlans
Doing a project at school, we've set up 2 boxes running ubuntu hardy server.
One is functioning strictly as a router running iptables and dhcp-services, and the other is running samba and bind9 dns server. We've also installed Webmin 1.420 for easier administration. The router has 2 NICs where eth0 is the wan interface and eth1 is the raw device for for a series of vlans. Now if we try to ping a domain name ( like google.com ) from the samba/dns-box, it works just fine. If we ping google.com from another computer on the same vlan, that works too, but if we move that other computer to a different vlan, it doesn't work anymore. We CAN, however, ping the samba/dns-server itself from the other vlan, it just won't resolve domain names. We tried to open up everything in iptables ( all chains have default policy set to ACCEPT ). Everything else works. We've even managed to join a WinXP computer to the samba domain across vlans. I'm coming up short on things to try, so I would really appreciate some input or ideas of what to do next. Thanks in advance |
Sounds like a routing issue. Did or does the vlan use the same route or do you need to specify a new default route? More details gets better replies.
|
Thanks for replying :)
The vlans have the same default gateway as eth0 Vlan part of /etc/network/interfaces: Code:
auto vlan2 running ifconfig -a gives: Code:
vlan2 Link encap:Ethernet HWaddr 00:01:03:45:28:bc |
Ok, it seems the problem had to do with recursive lookups. Our dns-server would resolve local names from any other vlan/subnet but not internet addresses.
|
All times are GMT -5. The time now is 12:17 PM. |