#Properly update /etc/hosts

18 messages · Page 1 of 1 (latest)

light ermine
#

I need to manually add entries to my /etc/hosts file to bypass my country's weird domain block list (e.g. duckduckgo which is my preferred search engine is blocked). Problem is, the /etc/hosts file is owned by root and there's seemingly no proper/safe way to run things as admin in the host shell (not to be confused with vso shell. there's no sudo in the host system)

If I were to locate /etc/hosts in the vso shell. it shows up as owned by nobody and nogroup. As such, running sudo vim /etc/hosts within vso shell will only load the file in readonly mode. Solutions that work system wide would be appreciated, thanks

#

Here's how it looks in the vso shell

spark tulip
#

Can't you just change it via the network manager?

spark tulip
light ermine
spark tulip
#

Yes

light ermine
#

I don't see a setting to add hostname/address to the local DNS

spark tulip
#

Uus a remote dns?

light ermine
#

Yeah no it doesn't work, unfortunately

#

Back in other system I would just define an entry in the hosts file

#

8.8.8.8 is applied btw

spark tulip
#

You can add it to the /etc/host file via "host-shell pkexec nano /etc/hosts"

light ermine
#

Okay that works

#

even though that one command just install a whole 375MB worth of containerized fedora

#

Thanks for the help!

light ermine
#

I don't know why but running that command for the first time, prompted the system to install a fedora container for some reason

#

sadly I lost the shell history so I couldn't provide a screenshot