You are not logged in.

#1 2010-01-14 12:46:35

tempo
Member
Registered: 2010-01-13
Posts: 16

[solved]how to stop /etc/resolv.conf keeps being overwritten ???

no matter how many times to change the content, it keeps like that:

# Generated by dhcpcd from eth0
# /etc/resolv.conf.head can replace this line
nameserver 192.168.8.1
# /etc/resolv.conf.tail can replace this line

so i can't add nameserver in it sad

Last edited by tempo (2010-01-14 15:01:35)


Excellent!!! Archlinux is installed in my USB-HDD ^.^

Offline

#2 2010-01-14 13:03:00

daneel971
Member
Registered: 2008-03-28
Posts: 197

Re: [solved]how to stop /etc/resolv.conf keeps being overwritten ???

Either you stop using DHCP, or you place your nameservers in resolv.conf.head/resolv.conf.tail
Anyway, if you are using DHCP, you should receive the DNS from your router.

Offline

#3 2010-01-14 13:03:23

Meyithi
Member
From: Wirral, UK
Registered: 2009-06-21
Posts: 550
Website

Re: [solved]how to stop /etc/resolv.conf keeps being overwritten ???

The clue is in the message, use a file called resolv.conf.head to add a nameserver to the top and resolv.conf.tail to add it to the bottom.

It's being overwritten because you are using dhcpcd to auto configure your network settings.

Last edited by Meyithi (2010-01-14 13:03:43)


The mind roams more freely in empty rooms.
dwm - colours - ncmpcpp - system
irc://irc.freenode.net:meyithi

Offline

#4 2010-01-14 13:52:52

tempo
Member
Registered: 2010-01-13
Posts: 16

Re: [solved]how to stop /etc/resolv.conf keeps being overwritten ???

thank you!!!
i understand how to do it now !!!

Last edited by tempo (2010-01-14 15:00:41)


Excellent!!! Archlinux is installed in my USB-HDD ^.^

Offline

Board footer

Powered by FluxBB