#[CLOSED] how to change DNS

25 messages · Page 1 of 1 (latest)

swift dawn
#

Running EndeavourOS KDE on my laptop
I know I can change my dns for a specific network through the GUI on KDE but I want to set it globally, and there's all these different ways to do it and I don't know what's the "right one" or at least the one least likely to do any harm. I'm using NetworkManager and as far as I know it's on default settings, Systemd-resolved is not running and resolvconf is installed but I don't think it's set up or anything. Yeah I've read the wiki but I'm still confused and have no idea, last time I tried changing my global dns I couldn't connect to the internet

green raft
#

what do you mean by globally? you usually can't change everyone else's DNS servers, so globally may be an issue

swift dawn
#

as in my laptop's on any network I connect to

green raft
#

ah, any reason you can't edit your resolv.conf?

#

that would let you add your own resolution for FQDNs, I haven't tried with ipv6, but if you're working with ipv4, that's the way to go

swift dawn
#

doesn't it reset on restart because of networkmanager?

green raft
#

as of late, yes- if this is the behavior, the resolv.conf file will tell you which file you can put custom entries into. usually in the form of a comment in the first few lines

#

if your conf file doesn't have any comments in it (and it's not empty), then you should be good to edit it directly.

swift dawn
#

nope pretty sure it just resets whenever you change networks or reboot

#

that could work

#

I just type nameserver x.x.x.x right?

green raft
#

oh geez I'm an idiot

swift dawn
#

what

green raft
#

I meant /etc/hosts

swift dawn
#

oh those you mean, yeah I just do it cause my isp's dns is shitty and I happen to connect to more than one router around different parts of my house, doing anything in /etc/hosts/ would do nothing

green raft
#

oh! I think I see what you want. I thought you just needed custom names

#

yes , "nameserver <IP>" is the correct syntax, resolved will go from top to bottom for whatever order you list them

swift dawn
#

so I just force networkmanager to not touch resolv.conf and set the dns there right?

green raft
#

you can do that, alternatively, symlinking the file will also let you have a manual configuration. that's what is covered in 4.7.1 in the guide you linked

#
swift dawn
#

thanks man

#

[CLOSED] how to change DNS

orchid vale
#

@swift dawn Side note for Security and Privacy: Use an encrypted DNS daemon to connect to a DNS server using TLS/HTTPS/QUIC

#

Otherwise, you are exposed to DNS attacks and your ISP will be able to log all the sites you access