On Fri, 01 Jul 2011 04:23:30 +1000, Zenaan Harkness <[email protected]> wrote:

Adding the following line to /etc/rc.local is a solution to this
problem, but seems ridiculously clunky:

/etc/init.d/networking restart

Surely there's something more elegant?

There is a network configuration file in RHEL or Fedora.

/etc/sysconfig/network-scripts/ifcfg-eth0(for e.g.)

DEVICE=eth0
BOOTPROTO=static (or dhcp)
ONBOOT=yes
TYPE=Ethernet
IPADDR=192.168.1.1 (none if dhcp)
NETMASK=255.255.255.0
GATEWAY=192.168.1.254
DNS{1,2}=192.168.1.253

There are other parameters but the one above will fix your resolv.conf.

--
Using Opera's revolutionary email client: http://www.opera.com/mail/
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to