Kong / lua-resty-dns-client

Lua DNS client, load balancer, and utility library

Home Page:http://kong.github.io/lua-resty-dns-client/topics/README.md.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Balancer fails to return hostname with named SRV entries

Tieske opened this issue · 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.