[systemd-devel] systemd-resolved : How to change permanently to 127.0.0.54

Daniel Foster daniel at amesite.me
Mon Dec 23 07:45:37 UTC 2024


I believe you can just remove the symlink at /etc/resolv.conf and 
replace it with a file that points to 127.0.0.54.

(apologies Laura, I forgot to reply all)

On Mon, Dec 23 2024 at 07:30:38 +00:00:00, Laura Smith 
<n5d9xq3ti233xiyif2vp at protonmail.ch> wrote:
> 
> On Sunday, 22 December 2024 at 22:13, Kevin P. Fleming <lists.systemd-
> 
>>  systemd-resolved does not write or otherwise modify 
>> /etc/resolv.conf; your system may have a symlink at /etc/resolv.conf 
>> which points to one of the files created by systemd-resolved. 
>> Whatever tool or method is managing that is the one that you will 
>> need to modify to put the address you want into the file.
> 
> 
> 
> Could we cut out the pedantry here ?
> 
> So, fine it is a symlink to "/run/systemd/resolve/stub-resolv.conf", 
> you're right.
> 
> My question remains technically valid.
> 
> So how about I re-write my question as follows:
> 
> How do I make /run/systemd/resolve/stub-resolv.conf show 127.0.0.54 ?




More information about the systemd-devel mailing list