Repository navigation
Configure network interfaces to respect DNS settings - #1043
Merged
Merged
Conversation
Implements DHH's requirement to ensure wlan0 and ethernet interfaces respect the DNS configuration while excluding docker/loop interfaces. When using Cloudflare or Custom DNS: - Sets UseDNS=no in DHCPv4 sections - Sets UseDNS=no in IPv6AcceptRA sections - Only configures primary interfaces (en*, eth*, wl*) - Restarts both systemd-networkd and systemd-resolved When using DHCP: - Removes UseDNS=no to allow DHCP provided DNS - Restores default behavior for all interfaces Script size increased from 58 to 89 lines to properly handle all network interfaces as requested.
Contributor
Author
|
Note: As discussed in #752, we might want to consider using Quad9 (9.9.9.9) as the fallback DNS instead of Google for better privacy consistency. Users choosing Cloudflare likely value privacy, so falling back to Google might not align with their preferences. This could be a future improvement if the team agrees. |
Contributor
|
I'm good with 9.9.9.9 |
Contributor
|
This won't mess with tailscale0 and docker bridge networks, right? |
Contributor
|
Ah, I see you already mentioned that's taken care of 👌 |
jardahrazdera
added a commit
to jardahrazdera/omarchy
that referenced
this pull request
Aug 24, 2025
Replace Google DNS fallback with Quad9 (9.9.9.9, 149.112.112.112) for better privacy consistency. Users choosing Cloudflare likely value privacy, so Quad9 is a more appropriate fallback than Google. As discussed in omacom#752 and approved by @dhh in omacom#1043.
Contributor
Author
OmarSkalli
pushed a commit
to OmarSkalli/omarchy
that referenced
this pull request
Aug 26, 2025
Implements DHH's requirement to ensure wlan0 and ethernet interfaces respect the DNS configuration while excluding docker/loop interfaces. When using Cloudflare or Custom DNS: - Sets UseDNS=no in DHCPv4 sections - Sets UseDNS=no in IPv6AcceptRA sections - Only configures primary interfaces (en*, eth*, wl*) - Restarts both systemd-networkd and systemd-resolved When using DHCP: - Removes UseDNS=no to allow DHCP provided DNS - Restores default behavior for all interfaces Script size increased from 58 to 89 lines to properly handle all network interfaces as requested.
OmarSkalli
pushed a commit
to OmarSkalli/omarchy
that referenced
this pull request
Aug 26, 2025
Replace Google DNS fallback with Quad9 (9.9.9.9, 149.112.112.112) for better privacy consistency. Users choosing Cloudflare likely value privacy, so Quad9 is a more appropriate fallback than Google. As discussed in omacom#752 and approved by @dhh in omacom#1043.
jakeprime
pushed a commit
to jakeprime/omarchy
that referenced
this pull request
Aug 26, 2025
Implements DHH's requirement to ensure wlan0 and ethernet interfaces respect the DNS configuration while excluding docker/loop interfaces. When using Cloudflare or Custom DNS: - Sets UseDNS=no in DHCPv4 sections - Sets UseDNS=no in IPv6AcceptRA sections - Only configures primary interfaces (en*, eth*, wl*) - Restarts both systemd-networkd and systemd-resolved When using DHCP: - Removes UseDNS=no to allow DHCP provided DNS - Restores default behavior for all interfaces Script size increased from 58 to 89 lines to properly handle all network interfaces as requested.
jakeprime
pushed a commit
to jakeprime/omarchy
that referenced
this pull request
Aug 26, 2025
Replace Google DNS fallback with Quad9 (9.9.9.9, 149.112.112.112) for better privacy consistency. Users choosing Cloudflare likely value privacy, so Quad9 is a more appropriate fallback than Google. As discussed in omacom#752 and approved by @dhh in omacom#1043.
gocs
pushed a commit
to gocs/omarchy
that referenced
this pull request
Aug 28, 2025
Implements DHH's requirement to ensure wlan0 and ethernet interfaces respect the DNS configuration while excluding docker/loop interfaces. When using Cloudflare or Custom DNS: - Sets UseDNS=no in DHCPv4 sections - Sets UseDNS=no in IPv6AcceptRA sections - Only configures primary interfaces (en*, eth*, wl*) - Restarts both systemd-networkd and systemd-resolved When using DHCP: - Removes UseDNS=no to allow DHCP provided DNS - Restores default behavior for all interfaces Script size increased from 58 to 89 lines to properly handle all network interfaces as requested.
gocs
pushed a commit
to gocs/omarchy
that referenced
this pull request
Aug 28, 2025
Replace Google DNS fallback with Quad9 (9.9.9.9, 149.112.112.112) for better privacy consistency. Users choosing Cloudflare likely value privacy, so Quad9 is a more appropriate fallback than Google. As discussed in omacom#752 and approved by @dhh in omacom#1043.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #752 implementing @dhh's request to ensure network interfaces properly respect DNS configuration.
The script now configures systemd-networkd to prevent DHCP from overriding custom DNS settings:
This ensures the DNS configuration chosen by the user is actually respected by all network interfaces.