How to set DNS{1,2} in network-script config?

Ciba LO cibalo at hotmail.com
Fri Mar 11 03:00:32 UTC 2005


Hello Markku Kolkka,

Thank you very much for replying to my post.

I have changed the file /etc/dhclient-eth0.conf as 
suggested.  Unfortunately, it doesn't work.  The listing of the 
configuration files are copied as follows.

# cat /etc/dhclient-eth0.conf
prepend domain-name-servers 192.168.1.3;

# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search pppoe.dialer
nameserver x.0.128.241
nameserver x.0.255.216

# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
IPV6INIT=no

# cat /etc/sysconfig/network-scripts/ifcfg-ppp0
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
IPV6INIT=no
USERCTL=yes
PEERDNS=yes
TYPE=xDSL
DEVICE=ppp0
BOOTPROTO=dialup
PIDFILE=/var/run/pppoe-adsl.pid
FIREWALL=NONE
PING=.
PPPOE_TIMEOUT=80
LCP_FAILURE=3
LCP_INTERVAL=20
CLAMPMSS=1412
CONNECT_POLL=6
CONNECT_TIMEOUT=60
PERSIST=no
SYNCHRONOUS=no
DEFROUTE=yes
USER='username at myisp.com'
ETH=eth0
PROVIDER=ppp0
DEMAND=no
ONBOOT=yes



Best Regards,
Ciba LO <cibalo at hotmail.com>





More information about the fedora-list mailing list