You are not logged in.

#1 2025-01-28 14:41:27

eightysixed
Member
From: USA
Registered: 2024-11-24
Posts: 58

Manually Setting Nameservers

I just noticed that merely changing the nameservers of the current/any connection via right-click the Network icons in the sysTray and selecting 'Edit Connections...' --> Wired Connection 1' --> 'Edit the Selection Connection' --> 'IPv4 Settings --> 'DNS nameservers: x.x.x.x' - 'Save' doesn't actually Save/Apply.

I had to manually edit /etc/resolv.conf. This isn't a complaint or anything, easy-peasy fix, but I was just curious if this was the intended behavior?

I hope everyone is enjoying their new year so far! big_smile

Offline

#2 2025-01-28 18:05:41

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Manually Setting Nameservers

I've just tested from the current live ISO image: resolv.conf isn't changed there unless NetworkManager.service is restarted.

A search suggests this will also work (replace eth0 with the actual interface name):

nmcli con eth0 up

When you edited the file did it have this message at the top:

# Generated by NetworkManager

If you want resolv.conf to change immediately try systemd-resolved, NM is supposed to work with that. Enable & start systemd-resolved.service and symlink the stub resolver to /etc/resolv.conf, as per the man page.

Offline

Board footer

Powered by FluxBB