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
#[CLOSED] how to change DNS
25 messages · Page 1 of 1 (latest)
what do you mean by globally? you usually can't change everyone else's DNS servers, so globally may be an issue
as in my laptop's on any network I connect to
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
doesn't it reset on restart because of networkmanager?
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.
nope pretty sure it just resets whenever you change networks or reboot
that could work
I just type nameserver x.x.x.x right?
oh geez I'm an idiot
what
I meant /etc/hosts
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
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
so I just force networkmanager to not touch resolv.conf and set the dns there right?
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
red hat gives a good description of how to accomplish either of these, for posterity:
Chapter 21. Manually configuring the /etc/resolv.conf file | Red Hat Documentation