Comments (5)
I have done a basic script at reboot to modify stub-resolver:
Don't do that. It has a big warning at the top not to edit it...
from systemd.
@rpigott yes, I know. As soon as there is another possibility, I will switch to it...
from systemd.
Just configure sd-resolved with the files and api that sd-resolved has. The stub-resolv.conf is only present for compat with glibc — you don't want to edit it.
from systemd.
Modifying these files manually is not supported, as mentioned use the appropriate interfaces that are available to do this.
from systemd.
FYI, I also did what you said, that is to say modifying /etc/systemd/resolved.conf
instead of stub listener file directly.
It works with this basic configuration:
[Resolve]
# Some examples of DNS servers which may be used for DNS= and FallbackDNS=:
# Cloudflare: 1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 2606:4700:4700::1001#cloudflare-dns.com
# Google: 8.8.8.8#dns.google 8.8.4.4#dns.google 2001:4860:4860::8888#dns.google 2001:4860:4860::8844#dns.google
# Quad9: 9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net
DNS=1.1.1.1
#FallbackDNS=1.1.1.1#cloudflare-dns.com 9.9.9.9#dns.quad9.net 8.8.8.8#dns.google 2606:4700:4700::1111#cloudflare-dns.com 2620:fe::9#dns.quad9.net 2001:4860:4860::8888#dns.google
FallbackDNS=9.9.9.9
#Domains=
#DNSSEC=no
#DNSOverTLS=no
#MulticastDNS=yes
#LLMNR=yes
#Cache=no
#CacheFromLocalhost=no
DNSStubListener=no
#DNSStubListenerExtra=
#ReadEtcHosts=yes
#ResolveUnicastSingleLabel=no
#StaleRetentionSec=
But if I change DNSStubListener=no
, to DNSStubListener=yes
and then restart systemd-resolved
, it does not work anymore with the same issue as described above. I also tried udp
and tcp
for this option; it does not work either. Did I miss something ?
from systemd.
Related Issues (20)
- logind `CanGraphical` state change only after DRM driver init HOT 9
- On Fedora with systemd 256 dracut cannot write hooks to `/lib/dracut/hooks` during boot because `/lib` is `/usr/lib`, which is read-only with new ProtectSystem feature HOT 5
- PID 1 complains about `Unknown serialization item 'handoff-timestamp-fds=93 94', ignoring.` on every daemon-reexec
- ProtectClock= is incompatible with DeviceAllow= in systemd-analyze security
- BTRFS mount usability with subvolumes and umlauts HOT 3
- [systemd-boot] Add ability to persistently set-oneshot when using @saved
- systemd silently fails to set persistent network names if they are too long HOT 2
- IPv6 Compliance RFC4861: Redirected On-link: Valid (Hosts Only) [v6LC.2.3.1 Part C] HOT 5
- systemd-resolved 255.5 fails DNSSEC verification of www.youtube.com (unsigned domain), was working in 255.4 HOT 10
- SocketBindAllow extend to more IP protocols
- systemd-boot does not show boot entries defined on the extended boot partition with nvme device HOT 1
- systemd.crash_shell runs in tandem with serial-getty@ttyS0 causing issues
- journalctl --sync should guarantee all currently in flight logs are written to the journal HOT 5
- Transient hostname behaves weirdly with DHCP leases HOT 9
- systemctl link ./*.container is not a valid unit name (podman) HOT 2
- systemd-resolved causes Firefox to take forever to load without work around HOT 12
- Add per unit LogForwardToXXX= settings HOT 3
- configurable nologin minimum time on shutdown
- systemd-resolved "DNSSEC=allow-downgrade" fails HOT 3
- systemd single handedly disabled rp_filter on all interfaces HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from systemd.