Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dns priority with wired and cellular modem connection enabled #395

Open
Stefal opened this issue May 27, 2024 · 0 comments
Open

dns priority with wired and cellular modem connection enabled #395

Stefal opened this issue May 27, 2024 · 0 comments
Assignees

Comments

@Stefal
Copy link
Owner

Stefal commented May 27, 2024

Describe the bug
With wired and cellular modem connection enabled, the first dns server used seems to be the one from the cellular modem, even though it's metric value is higher than the wired one.

To Reproduce
Steps to reproduce the behavior:

  1. nmcli shows :
DNS configuration:
        servers: 192.168.0.1
        interface: enxae0c29a39b6d
        
        servers: 192.168.1.253
        domains: lan
        interface: end0

inside the nmcli connection, dns priority are both set to 0

$ nmcli connection show 'Cellular Modem' | grep dns
connection.mdns:                        -1 (default)
connection.dns-over-tls:                -1 (default)
ipv4.dns:                               --
ipv4.dns-search:                        --
ipv4.dns-options:                       --
ipv4.dns-priority:                      0
ipv4.ignore-auto-dns:                   no
ipv6.dns:                               --
ipv6.dns-search:                        --
ipv6.dns-options:                       --
ipv6.dns-priority:                      0
ipv6.ignore-auto-dns:                   no

$ nmcli connection show 'Wired connection 1' | grep dns
connection.mdns:                        -1 (default)
connection.dns-over-tls:                -1 (default)
ipv4.dns:                               --
ipv4.dns-search:                        --
ipv4.dns-options:                       --
ipv4.dns-priority:                      0
ipv4.ignore-auto-dns:                   no
ipv6.dns:                               --
ipv6.dns-search:                        --
ipv6.dns-options:                       --
ipv6.dns-priority:                      0
ipv6.ignore-auto-dns:                   no
3. Click on '....'
4. Scroll down to '....'
5. See error
$ ip route
default via 192.168.1.253 dev end0 proto dhcp src 192.168.1.127 metric 101
default via 192.168.0.1 dev enxae0c29a39b6d proto dhcp src 192.168.0.100 metric 900
192.168.0.0/24 dev enxae0c29a39b6d proto kernel scope link src 192.168.0.100 metric 900
192.168.1.0/24 dev end0 proto kernel scope link src 192.168.1.127 metric 101
192.168.3.0/24 dev enx1a3202991545 proto kernel scope link src 192.168.3.214 metric 100

Expected behavior
The dns server on the connection with the lowest metric value should have the priority

@Stefal Stefal self-assigned this May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant