<p></p>
<p>In one config I use</p>
<pre><code>dns_cache_flags = 4
dns_cache_init = off
</code></pre>
<p>Looks as when Kamailio try to resolve DNS hostname sended two DNS requests:</p>
<ol>
<li>A for IPv4 address resolving;</li>
<li>AAAA for IPv6 address resolving.</li>
</ol>
<p>When DNS hostname has only AAAA record and do not has A record, then</p>
<ol>
<li>AAAA request will be successful;</li>
<li>A request will return <code>NXDomain</code>.</li>
</ol>
<p>Looks as when Kamailio received <code>NXDomain</code>, then takes the server hostname domain and adds this part to searched DNS name and repeated request.<br>
Example:</p>
<ol>
<li>I need to send a packet to <code>ipv6.test-ipv6.com</code> that has only AAAA dns record.</li>
<li>Kamailio hostname <code>proxy.example.com</code>;</li>
<li>Kamailio send <code>ipv6.test-ipv6.com</code> AAAA request, successful;</li>
<li>Kamailio send <code>ipv6.test-ipv6.com</code> A request, <code>NXDomain</code>;</li>
<li>Kamailio send <code>ipv6.test-ipv6.com.example.com</code> AAAA request, <code>NXDomain</code>;</li>
<li>Kamailio send <code>ipv6.test-ipv6.com.example.com</code> A request, <code>NXDomain</code>.</li>
</ol>
<p>Using absolute DNS name, I want Kamailio to not modify DNS name and not send extra requests.</p>
<p>Tested on master.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2706#issuecomment-819284000">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLXRPUMD2PKGSCJ2T3TIU5MNANCNFSM423KFRZA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZO2W4XQLIV77XQ6GI3TIU5MNA5CNFSM423KFRZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGDKUQIA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2706#issuecomment-819284000",
"url": "https://github.com/kamailio/kamailio/issues/2706#issuecomment-819284000",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>