You are not logged in.

#1 2007-04-29 05:34:38

cheer
Member
From: Russia, St. Petersburg
Registered: 2006-08-02
Posts: 131

DNS and dhcp network profile

Hello everybody.
I use several network profiles on my laptop, one of them is wireless at home. I need to specify the DNS servers at /etc/network-profiles/home:

INTERFACE=eth1
HOSTNAME=lap

IFOPTS="dhcp"

DOMAIN=localdomain
DNS1=194.8.160.90

And it works perfectly. But after the lease renews, I get

nameserver 192.168.1.1

in /etc/resolv.conf (it is my router) instead of specified DNS servers. What can be done to use DNS servers from the network profile?

Last edited by cheer (2007-04-30 03:12:43)

Offline

#2 2007-04-29 07:14:06

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: DNS and dhcp network profile

Hi cheer,
try adding -R option to /etc/conf.d/dhcpcd
From dhcpcd man page:

 -R   Prevents dhcpcd from replacing /etc/resolv.conf or using resolvconf.

Offline

#3 2007-04-29 07:18:50

cheer
Member
From: Russia, St. Petersburg
Registered: 2006-08-02
Posts: 131

Re: DNS and dhcp network profile

Yes, I know it. If I used a desktop computer, I would use this option. But I use laptop, so I don't want to replace my /etc/resolv.conf
P.S. it seems that this issue happened from upgrading of dhcpcd package.
P.P.S. The bug was opened, thanks to iphitus: http://bugs.archlinux.org/task/7024

Last edited by cheer (2007-04-30 03:14:49)

Offline

Board footer

Powered by FluxBB