You are not logged in.
Pages: 1
Hi,
The reason i need to edit resolv.conf is due to error...core.db...pacman even if im connected to wifi with working internet ,this is also the way i installed arch.
But every time i restart computer savings from resolv.conf are lost and i need to edit it again.Help!
Last edited by lounge (2015-03-15 17:34:35)
Offline
Offline
@OP: Edit the file at /etc/dhcpcd.conf and add this line at the bottom:
nohook resolv.conf
https://wiki.archlinux.org/index.php/Re … pcd_config
Alternatively, make the resolv.conf file immutable:
# chattr +i /etc/resolv.conf
Last edited by Head_on_a_Stick (2015-03-02 21:24:28)
Offline
^ Raynman linked to the same wiki page. I guess an echo is a good thing.
Offline
Make the resolv.conf write protected. Echo.
Offline
@OP: Edit the file at /etc/dhcpcd.conf and add this line at the bottom:
nohook resolv.conf
https://wiki.archlinux.org/index.php/Re … pcd_config
Alternatively, make the resolv.conf file immutable:
# chattr +i /etc/resolv.conf
I did all this ,but still loosing ,how exactly i make resolv.conf write protected by echo ?
Offline
What is the output of:
lsattr /etc/resolv.conf
Offline
What is the output of:
lsattr /etc/resolv.conf
Hi,this is the output
-------------e-- /etc/resolv.conf
Offline
Hi,this is the output
-------------e-- /etc/resolv.conf
The immutable bit is not set; try again:
# chattr +i /etc/resolv.conf
It should then look like this:
empty@Arch ~ % lsattr /etc/resolv.conf
----i--------e-- /etc/resolv.conf
Offline
lounge wrote:Hi,this is the output
-------------e-- /etc/resolv.conf
The immutable bit is not set; try again:
# chattr +i /etc/resolv.conf
It should then look like this:
empty@Arch ~ % lsattr /etc/resolv.conf ----i--------e-- /etc/resolv.conf
It is working now ,thank you :>
Offline
You're welcome.
If you edit the title of this thread and put "[SOLVED]" at the beginning, it will help others with this problem
Offline
Pages: 1