Current time: 05-20-2024, 03:15 PM Hello There, Guest! (LoginRegister)


Post Reply 
DNS Server on eth0 & eth1
Author Message
SpiderMang Offline


Posts: 2
Joined: Oct 2009
Reputation: 0
Post: #1
Question DNS Server on eth0 & eth1
I currently have a setup like this:

Quote: Router 1 (69.11.#.#) - 192.168.0.69 (eth0)
Router 2 (71.17.#.#) - 192.168.1.71 (eth1)

I host HTTP, DNS, SMTP, IMAP, etc. All of this goes through Router 1 except DNS which I want to go through both. Both routers are setup to forward the appropriate ports to the correct LAN IP's. The problem is only 1 interface seems to work at a time. If I do ifdown eth1 then DNS works on eth0 and vise-versa. I know I have to setup /etc/network/interfaces with some routing and such but how do I do this? I have looked but I don't understand linux networking enough to do it. Here is my current configuration.

Quote: auto eth0
iface eth0 inet static
address 192.168.0.69
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

auto eth1
iface eth1 inet static
address 192.168.1.71
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
I have tried removing gateway 192.168.1.1 but it didn't seem to help.

Also I have been thinking of trying this but I am not at home to do it right now. What do you think of trying this:

Quote:# Loopback NIC
auto lo
iface lo inet loopback

# Primary NIC
auto eth0
iface eth0 inet static
address 192.168.0.69
netmask 255.255.255.0
post-up ip route add 192.168.0.0/24 dev eth0 src 192.168.0.69 table 1
post-up ip route add default via 192.168.0.1 table 1
post-up ip rule add from 192.168.0.69 table 1
post-down ip rule del from 192.168.0.69 table 1

# Secondary NIC
auto eth1
iface eth1 inet static
address 192.168.1.71
netmask 255.255.255.0
post-up ip route add 192.168.1.0/24 dev eth1 src 192.168.1.71 table 2
post-up ip route add default via 192.168.1.1 table 2
post-up ip rule add from 192.168.1.71 table 2
post-down ip rule del from 192.168.1.71 table 2
10-09-2009 04:43 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
DNS Server on eth0 & eth1 - SpiderMang - 10-09-2009 04:43 AM
RE: DNS Server on eth0 & eth1 - gOOvER - 10-09-2009, 04:51 AM
RE: DNS Server on eth0 & eth1 - SpiderMang - 10-09-2009, 05:07 AM
RE: DNS Server on eth0 & eth1 - kilburn - 10-09-2009, 09:24 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)