Skip to content

resolve: gracefully fallback to 'PrivateDNS=no' when connection is rejected #9281

Closed

Description

@yuwata

Is your feature request related to a problem? Please describe.

Our DNS servers seem not support DNS-over-TLS. When I set PrivateDNS=opportunistic, I cannot resolve hosts.

Jun 13 11:07:21 systemd-resolved[15730]: Got message type=method_call sender=:1.4799 destination=org.freedesktop.resolve1 path=/org/freedesktop/resolve1 interface=org.freedesktop.resolve1.Manager member=ResolveHostname cookie=2 reply_coo>
Jun 13 11:07:21 systemd-resolved[15730]: idn2_lookup_u8: ssh.github.com → ssh.github.com
Jun 13 11:07:21 systemd-resolved[15730]: Looking up RR for ssh.github.com IN A.
Jun 13 11:07:21 systemd-resolved[15730]: Looking up RR for ssh.github.com IN AAAA.
Jun 13 11:07:21 systemd-resolved[15730]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=AddMatch cookie=7 reply_cookie=0 signature=s error-name=n>
Jun 13 11:07:21 systemd-resolved[15730]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=GetNameOwner cookie=8 reply_cookie=0 signature=s error-na>
Jun 13 11:07:21 systemd-resolved[15730]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.4797 path=n/a interface=n/a member=n/a cookie=7 reply_cookie=8 signature=s error-name=n/a error-message=n/a
Jun 13 11:07:21 systemd-resolved[15730]: Cache miss for ssh.github.com IN A
Jun 13 11:07:21 systemd-resolved[15730]: Transaction 9388 for <ssh.github.com IN A> scope dns on enp0s25/*.
Jun 13 11:07:21 systemd-resolved[15730]: Using feature level TLS+EDNS0+D0 for transaction 9388.
Jun 13 11:07:21 systemd-resolved[15730]: Using DNS server 10.224.254.1 for transaction 9388.
Jun 13 11:07:21 systemd-resolved[15730]: Sending query via TCP since UDP isn't supported.
Jun 13 11:07:21 systemd-resolved[15730]: Using feature level TLS+EDNS0+D0 for transaction 9388.
Jun 13 11:07:21 systemd-resolved[15730]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.4797 path=n/a interface=n/a member=n/a cookie=6 reply_cookie=7 signature=n/a error-name=n/a error-message=n/a
Jun 13 11:07:21 systemd-resolved[15730]: Match type='signal',sender='org.freedesktop.DBus',path='/org/freedesktop/DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0=':1.4799' successfully installed.
Jun 13 11:07:21 systemd-resolved[15730]: Connection failure for DNS TCP stream: Connection refused
Jun 13 11:07:21 systemd-resolved[15730]: Retrying transaction 9388.
Jun 13 11:07:21 systemd-resolved[15730]: Switching to DNS server 10.224.253.11 for interface enp0s25.
Jun 13 11:07:21 systemd-resolved[15730]: Cache miss for ssh.github.com IN A
Jun 13 11:07:21 systemd-resolved[15730]: Transaction 9388 for <ssh.github.com IN A> scope dns on enp0s25/*.
Jun 13 11:07:21 systemd-resolved[15730]: Using feature level TLS+EDNS0+D0 for transaction 9388.
Jun 13 11:07:21 systemd-resolved[15730]: Using DNS server 10.224.253.11 for transaction 9388.
Jun 13 11:07:21 systemd-resolved[15730]: Sending query via TCP since UDP isn't supported.
Jun 13 11:07:21 systemd-resolved[15730]: Using feature level TLS+EDNS0+D0 for transaction 9388.
Jun 13 11:07:21 systemd-resolved[15730]: Transaction 9388 for <ssh.github.com IN A> on scope dns on enp0s25/* now complete with <ECONNREFUSED> from none (unsigned).
Jun 13 11:07:21 systemd-resolved[15730]: Sent message type=error sender=n/a destination=:1.4799 path=n/a interface=n/a member=n/a cookie=9 reply_cookie=2 signature=s error-name=System.Error.ECONNREFUSED error-message=Lookup failed due to>
Jun 13 11:07:21 systemd-resolved[15730]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=RemoveMatch cookie=10 reply_cookie=0 signature=s error-na>
Jun 13 11:07:21 systemd-resolved[15730]: Freeing transaction 9388.
Jun 13 11:07:21 systemd-resolved[15730]: Connection failure for DNS TCP stream: Connection refused

Describe the solution you'd like
When the connection is refused, then try to connect with UDP, like DNSSEC=allow-downgrade.

Describe alternatives you've considered
Update manual?

Activity

  1. added
    RFE 🎁
    on Jun 13, 2018
  2. added a commit that references this issue on Jun 13, 2018
    eab39da
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFE 🎁resolve

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions