In one config I use

dns_cache_flags = 4
dns_cache_init = off

Looks as when Kamailio try to resolve DNS hostname sended two DNS requests:

  1. A for IPv4 address resolving;
  2. AAAA for IPv6 address resolving.

When DNS hostname has only AAAA record and do not has A record, then

  1. AAAA request will be successful;
  2. A request will return NXDomain.

Looks as when Kamailio received NXDomain, then takes the server hostname domain and adds this part to searched DNS name and repeated request.
Example:

  1. I need to send a packet to ipv6.test-ipv6.com that has only AAAA dns record.
  2. Kamailio hostname proxy.example.com;
  3. Kamailio send ipv6.test-ipv6.com AAAA request, successful;
  4. Kamailio send ipv6.test-ipv6.com A request, NXDomain;
  5. Kamailio send ipv6.test-ipv6.com.example.com AAAA request, NXDomain;
  6. Kamailio send ipv6.test-ipv6.com.example.com A request, NXDomain.

Using absolute DNS name, I want Kamailio to not modify DNS name and not send extra requests.

Tested on master.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.