This is a discussion on Default route - help... within the Linux Networking forums, part of the Linux Forums category; Hi all, I'm using a network where the nearest DNS host is outside the local network. In order to ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi all,
I'm using a network where the nearest DNS host is outside the local network. In order to get my Linux hosts to resolve any hostname not explicitly named in /etc/hosts I have set up a default route, pointing to the default gateway, using /sbin/route (specifically, /sbin/route add default gw defaultgateway). Is this the only way to get this arrangement to work? Is there a better method? Two of my recently built machines seem to be having trouble keeping this default route in place. Every time they reboot, the default route seems to disappear from the routing table and needs to be added manually. Short of adding this step to the startup scripts, how can I ensure that these machines can be rebooted and used to access hosts outside the local net? I'm using RH 7.2 (I know, I know, but I'm constrained). Can anyone point me to helpful documentation/HOWTOs/etc? Thanks in advance for the help - Adam Cheney |
|
|||
|
vi /etc/sysconfig/network
GATEWAY=x.x.x.x GATEWAYDEV=ethx (interface where the DG can be found on) koen "Adam" <adam_cheney@hotmail.com> wrote in message news:214d0889.0307080247.4811569e@posting.google.c om... > Hi all, > > I'm using a network where the nearest DNS host is outside the local > network. In order to get my Linux hosts to resolve any hostname not > explicitly named in /etc/hosts I have set up a default route, pointing > to the default gateway, using /sbin/route (specifically, /sbin/route > add default gw defaultgateway). Is this the only way to get this > arrangement to work? Is there a better method? > > Two of my recently built machines seem to be having trouble keeping > this default route in place. Every time they reboot, the default > route seems to disappear from the routing table and needs to be added > manually. Short of adding this step to the startup scripts, how can I > ensure that these machines can be rebooted and used to access hosts > outside the local net? > > I'm using RH 7.2 (I know, I know, but I'm constrained). Can anyone > point me to helpful documentation/HOWTOs/etc? > > Thanks in advance for the help - Adam Cheney |