Kong/lua-resty-dns-client

Balancer fails to return hostname with named SRV entries

Tieske opened this issue · 0 comments

When the ringbalancer gets a host added, eg. "somehost.com", and that name resolves to an SRV record containing names as in for example:

  • host1.somehost.com
  • host2.somehost.com

Then the getPeer function will return the IP and port number, but the third return value (the hostname) will be missing (nil will be returned).

Issue detected in version 0.4.2, but still exists in master.