Skip to content

DNS-over-TLS(openssl): cannot resolve hosts with EHOSTUNREACH #9773

Closed

Description

@yuwata

Conditions:

  • DNS-over-TLS backend: openssl
  • DNSOverTLS=opportunistic
  • DNS servers do not support DNS-over-TLS.

Then, resolved does not downgrade the feature to connect DNS servers, but returns EHOSTUNREACH.

Aug 01 17:19:43 systemd-resolved[13917]: Transaction 14586 for <www.google.com IN A> scope dns on enp0s25/*.
Aug 01 17:19:43 systemd-resolved[13917]: Using feature level TLS+EDNS0+D0 for transaction 14586.
Aug 01 17:19:43 systemd-resolved[13917]: Using DNS server 10.224.254.1 for transaction 14586.
Aug 01 17:19:43 systemd-resolved[13917]: Sending query via TCP since UDP isn't supported.
Aug 01 17:19:43 systemd-resolved[13917]: Using feature level TLS+EDNS0+D0 for transaction 14586.
Aug 01 17:19:43 systemd-resolved[13917]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.1104 path=n/a interface=n/a member=n/a cookie=62 reply_cookie=116 signature=n/a error-name=n/a error-message=n/a
Aug 01 17:19:43 systemd-resolved[13917]: Match type='signal',sender='org.freedesktop.DBus',path='/org/freedesktop/DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0=':1.1133' successfully installed.
Aug 01 17:19:43 systemd-resolved[13917]: Transaction 14586 for <www.google.com IN A> on scope dns on enp0s25/* now complete with <EHOSTUNREACH> from none (unsigned).
Aug 01 17:19:43 systemd-resolved[13917]: Sent message type=error sender=n/a destination=:1.1133 path=n/a interface=n/a member=n/a cookie=118 reply_cookie=2 signature=s error-name=System.Error.EHOSTUNREACH error-message=Lookup failed due >
Aug 01 17:19:43 systemd-resolved[13917]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=RemoveMatch cookie=119 reply_cookie=0 signature=s error-n>
Aug 01 17:19:43 systemd-resolved[13917]: Freeing transaction 14586.

cc @irtimmer.

Activity

  1. added a commit that references this issue on Aug 6, 2018
    68c597e
  2. added a commit that references this issue on Oct 31, 2018
    459a65a
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions