Bypassing DHCP DNS with systemd-resolved
0
votes
1
answer
118
views
### The issue
Changing the DNS option in
### Additional troubleshooting
- I tried linking
resolv.conf
from the VM's gateway to 8.8.8.8 will result in no DNS resolution.
resolvectl query google.com
succeeds if I set DNS to my gateway.
### The set-up
- /etc/resolv.conf
is linked to stub-resolv.conf
- systemd-networkd is configured as follows:
[Match]
Name=enp0s3
[Network]
Address=192.168.0.222/24
Gateway=192.168.0.1
DNS=8.8.8.8
- /etc/systemd/resolv.conf
has not been modified

/etc/resolv.conf
to /run/systemd/resolve/resolv.conf
instead and only listing 8.8.8.8 as nameserver there. But systemd-resolved overwrites /run/systemd/resolve/resolv.conf
Asked by Centaro
(33 rep)
May 30, 2024, 07:50 PM
Last activity: Jun 5, 2024, 08:10 AM
Last activity: Jun 5, 2024, 08:10 AM