Come to think of it, I actually made this work on a WinBlows box... Let me
see if I can remember...
1. The external NIC was set up with DHCP and would pick up the default route
from there.
2. The internal NIC was set up with static IP and NO default route
3. After bootup I had a bat file that put in a static route to the internal
net
4. I also had to use statically defined DNS with the internal DNS as the
primary and the external as secondary. That way the internal DNS would very
quickly reply back with a negative answer for external lookups. (the external
would search the entire internic list before giving up)
Now the question is how to translate that into UNIX.
1. Check you routing tables (netstat -r -n) and make sure you don't have
multiple default routes. If you do change the config on the internal NIC
to not have a default route.
2. If you don't have a static route to the internal net, put a "route add"
in the /etc/rc.d/rc.local file.
3. Put the internal DNS in the list first and remove the "search" line.
Let me know if that works.
John Wells wrote:
20011031192018.25759.qmail@web9208.mail.yahoo.com">
Well, there's no real external domain here. I justwant to be able to look up sites like www.slashdot.orgor www.cnn.com and also look up partial internalhostnames like mytestbox (ormytestbox.mytestdomain.com).Thanks,John--- Robert Heaven <robertheaven@mediaone.net> wrote:
did you try: search testdomain.com externaldomain.comJohn Wells wrote:
I'm trying to get a machine set up that has two
NICs,
one to internal network and one to external
network.
I want to be able to use the internal net's DNS
server
to resolve internal DNS queries, and the externalnet's DNS server to resolve external queries. Theinternal net's domain is testdomain.com.So, if I set up /etc/resolv.conf to be:search testdomain.comnameserver 198.153.233.8 ;internal nameserver 38.2.3.4 ; externalnameserver 38.2.3.5 ; externalHosts resolve on the internal net but not on theexternal one.If I set up /etc/resolv.conf to be:search testdomain.comnameserver 38.2.3.4 ; externalnameserver 38.2.3.5 ; externalnameserver 198.153.233.8 ;internal then hosts resolve on the external (ex.www.slashdot.org) but not the internal.Is there no way to have both resolve? Will I have
to
change the internal server to provide information
on
external hosts? I've tried a number of differentconfiguration but can't seem to get one to work.Thanks in advance,John__________________________________________________Do You Yahoo!?Make a great connection at Yahoo! Personals.http://personals.yahoo.com---This message has been sent through the ALE general
discussion list.
See http://www.ale.org/mailing-lists.shtml for more
info. Problems should be
sent to listmaster at ale dot org.
__________________________________________________Do You Yahoo!?Make a great connection at Yahoo! Personals.http://personals.yahoo.com---This message has been sent through the ALE general discussion list.See http://www.ale.org/mailing-lists.shtml for more info. Problems should be sent to listmaster at ale dot org.
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.