<div dir="ltr">Hello, everyone!<div><br></div><div>I'm trying to enable dns_srv_lb but I'm stuck just before I can get there. If I don't enable use_dns_failover, lookups work and calls route but always to the first host. We need to load balance, so that doesn't work very well.</div><div><br></div><div>If I enable use_dns_failover, the lookups stop working completely and we get a dns lookup failure like so:</div><div> ERROR: tm [ut.h:296]: uri2dst2(): ERROR: uri2dst: failed to resolve "<a href="http://redacted.hostname.here.com">redacted.hostname.here.com</a>" :unresolvable A or AAAA request (-7)<br></div><div><br></div><div>This works:</div><div><div>use_dns_cache=on</div><div>dns_use_search_list=no</div><div>dns_try_naptr=on</div><div># use_dns_failover=on</div></div><div><br></div><div>This breaks it:</div><div><div>use_dns_cache=on</div><div>dns_use_search_list=no</div><div>dns_try_naptr=on</div><div>use_dns_failover=on</div></div><div><br></div><div>I have checked to see that use_dns_failover is compiled in:</div><div><div>version: kamailio 4.4.2 (x86_64/linux)</div><div>flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES</div><div>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB</div><div>poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.</div><div>id: unknown</div><div>compiled with gcc 4.9.2</div></div></div>