Can't remove custom dns service

garuda assistant>settings>Dns
i choose cloudflare >> dns updated
i choose anything else >> dns updated
i choose the blank option box to disable>> no changes happens
solve?

https://wiki.archlinux.org/title/Domain_name_resolution

https://wiki.archlinux.org/title/NetworkManager#/etc/resolv.conf

3 Likes

didn't fully understand what to do. /etc/resolv.conf file got a line nameserver 1.1.1.1. as 1.1.1.1 is cloudflare's dns address, i thought removing this line would help but i can't edit the file.
(and yeah, category changed to 'newbies' :slight_smile: )"

You should be able to edit the file with

sudo micro /etc/resolv.conf

That should allow you to delete that line and save the file. Ctrl-S and Ctrl-Q will save and quit after editing.

1 Like

it says 'operation not permitted'

Have you previously assigned it the immutable attribute? What is the output of lsattr /etc/resolv.conf?

3 Likes
$  lsattr /etc/resolv.conf

>> ----i----------------- /etc/resolv.conf

That output indicates the immutable attribute has been applied, to prevent the file from being overwritten. If you want to change the file, you must first remove that attribute:

chattr -i /etc/resolv.conf

7 Likes

garuda assistant applied that security. i removed that line. now it's fine. thanks

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.