resolved: document that IPC provided and networkd provided DNS servers are combined, and the former cannot override the latter
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 16.7k
- Forks
- 4.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 140
Description
systemd version the issue has been seen with
systemd 245 (245.5-2-arch)
+PAM +AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid
Used distribution
Arch Linux
Unexpected behaviour you saw
I expect that resolvectl dns LINK ADDR sets the nameservers for LINK to ADDR. However, it appends ADDR to the existing list.
Attempting to remove all the addresses using resolvectl LINK '' results in the dns servers being reverted to the DHCP assigned nameservers.
I would expect the nameservers to be replaced fully with the ADDR (or provide a switch that allows me to do so).
Steps to reproduce the problem
- Have an interface that is dhcp configured, but you want to use a different nameserver at runtime
- call
resolvectl dns LINK ADDR - The server is added to the list, the list is not replaced
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the documentation for the resolvectl dns LINK ADDR command and the description of DHCP-provided DNS servers. Document that IPC-provided and networkd-provided servers are combined, and that the former cannot override the latter; confirm the wording against the reproduction steps and expected behavior in this issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- documentation, networking
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100