Current time: 11-27-2024, 12:11 AM 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
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #2
RE: DNS Server on eth0 & eth1
This is a Supportforum for ispCP, mot for "How configurate my Router". Please use google or post in your favorite Administration Forum. Wink
10-09-2009 04:51 AM
Visit this user's website Find all posts by this user Quote this message in a reply
SpiderMang Offline


Posts: 2
Joined: Oct 2009
Reputation: 0
Post: #3
RE: DNS Server on eth0 & eth1
I have ispCP installed. How is this question different from people trying to get ProFTPD or BIND working? This has to do with getting BIND/DNS working and serving properly. Also the routers aren't the issue, its the linux networking configuration.
10-09-2009 05:07 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: DNS Server on eth0 & eth1
The ability to configure FTP and DNS services is part of ispcp features, whereas the ability to configure fancy routing schemes isn't. That's how it's different...

BTW, you should first setup a "split access" network as explained in the Linux Advanced Routing and Traffic Control (LARTC) manual. Then, install ispcp as usual, specifying the IP from router1. Finally, manually modify the bind templates (/etc/ispcp/bind/parts) so that the IP used there as NS is the one from Router2.

After all this, clients should come in through Router1, so your server will answer through this route (as explained in LARTC). In contrast, DNS requests will come in through Router2, and therefore answered through it accordingly.
(This post was last modified: 10-09-2009 09:24 PM by kilburn.)
10-09-2009 09:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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