<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
DNS works over UDP by default, that is unless the UDP response contains the Truncated flag which tells the client to use TCP instead.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
More information here: <a href="https://ns1.com/blog/when-dns-uses-udp-versus-tcp" id="LPlnk374249">https://ns1.com/blog/when-dns-uses-udp-versus-tcp</a></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I've tested this myself, FreeSWITCH ignores the Truncated flag and continues to use UDP anyway. It seems that FreeSWITCH is not RFC 2671 compliant, this would need to be developed.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
There is a related open issue: <a href="https://github.com/signalwire/freeswitch/issues/907" id="LPNoLPOWALinkPreview">https://github.com/signalwire/freeswitch/issues/907</a></div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><span><br>
</span></span></div>
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> on behalf of Sergey Safarov <s.safarov@gmail.com><br>
<b>Sent:</b> 12 December 2021 20:37<br>
<b>To:</b> FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org><br>
<b>Subject:</b> Re: [Freeswitch-users] Weird: Cloudflare 1.1.1.1 DNS server not working with sofia_dig</font>
<div> </div>
</div>
<div>
<div dir="ltr">To reproduce the issue you can create a NAPTR record with lot of data and then try to make a call to a domain that resolved via NAPTR/SRV<br>
In my case <br>
<br>
<div>Example<br>
<br>
</div>
<div><font color="#0000ff">[safarov@safarov-dell ~]$ nslookup -type=NAPTR <a href="http://ok.nga911.com">
ok.nga911.com</a><br>
;; Truncated, retrying in TCP mode.<br>
Server: 127.0.0.53<br>
Address: 127.0.0.53#53<br>
<br>
Non-authoritative answer:<br>
<a href="http://ok.nga911.com">ok.nga911.com</a> naptr = 100 10 "U" "LoST:findServiceByCivicAddress" "!.*!<a href="https://api.ok.nga911.com/api/v1/lost/find-service-by-civic-address">https://api.ok.nga911.com/api/v1/lost/find-service-by-civic-address</a>!"
 .<br>
<a href="http://ok.nga911.com">ok.nga911.com</a> naptr = 100 10 "U" "LoST:listServicesByLocation" "!.*!<a href="https://api.ok.nga911.com/api/v1/lost/list-services-by-location">https://api.ok.nga911.com/api/v1/lost/list-services-by-location</a>!" .<br>
<a href="http://ok.nga911.com">ok.nga911.com</a> naptr = 100 10 "U" "LoST:listServices" "!.*!<a href="https://api.ok.nga911.com/api/v1/lost/list-services">https://api.ok.nga911.com/api/v1/lost/list-services</a>!" .<br>
<a href="http://ok.nga911.com">ok.nga911.com</a> naptr = 100 10 "U" "LIS:HELD" "!.*!<a href="https://psap.ok.nga911.com/LIS/">https://psap.ok.nga911.com/LIS/</a>!" .<br>
<a href="http://ok.nga911.com">ok.nga911.com</a> naptr = 50 500 "S" "SIPS+D2W" "" _sips._<a href="http://ws.ok.nga911.com">ws.ok.nga911.com</a>.<br>
<a href="http://ok.nga911.com">ok.nga911.com</a> naptr = 30 300 "S" "SIP+D2U" "" _sip._<a href="http://udp.ok.nga911.com">udp.ok.nga911.com</a>.<br>
<a href="http://ok.nga911.com">ok.nga911.com</a> naptr = 20 200 "S" "SIP+D2T" "" _sip._<a href="http://tcp.ok.nga911.com">tcp.ok.nga911.com</a>.<br>
<a href="http://ok.nga911.com">ok.nga911.com</a> naptr = 100 10 "U" "LoST:findServiceByLocation" "!.*!<a href="https://api.ok.nga911.com/api/v1/lost/find-service-by-location">https://api.ok.nga911.com/api/v1/lost/find-service-by-location</a>!" .<br>
<a href="http://ok.nga911.com">ok.nga911.com</a> naptr = 40 400 "S" "SIPS+D2T" "" _sip._<a href="http://tls.ok.nga911.com">tls.ok.nga911.com</a>.<br>
<br>
Authoritative answers can be found from:<br>
</font></div>
<div><br>
</div>
<div>NAPTR response UDP will not contain the whole responce.</div>
<div>you can see</div>
<div><br>
</div>
<div><span style="color:rgb(0,0,255)">;; Truncated, retrying in TCP mode.</span><br style="color:rgb(0,0,255)">
</div>
<div><br>
</div>
<div>If response via UDP do not contains</div>
<div><span style="color:rgb(0,0,255)"><a href="http://ok.nga911.com">ok.nga911.com</a> naptr = 30 300 "S" "SIP+D2U" "" _sip._<a href="http://udp.ok.nga911.com">udp.ok.nga911.com</a>.</span><br style="color:rgb(0,0,255)">
</div>
<div><br>
</div>
<div>Then FS will fail place a call.</div>
<div><br>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Sun, Dec 12, 2021 at 10:15 PM Avi Marcus <<a href="mailto:avi@avimarcus.net">avi@avimarcus.net</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">Also FreeSWITCH Version 1.10.7-release-19-883d2cb662~64bit (-release-19-883d2cb662 64bit)
<div>On debian 9.13</div>
<div><br>
</div>
<div>`sofia_dig -v @<a href="http://1.1.1.1" target="_blank">1.1.1.1</a> <a href="http://google.com" target="_blank">
google.com</a>` works, with and without the -v flag.</div>
<div><br>
</div>
<div><br clear="all">
<div>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">-Avi Marcus<br>
<br>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Sun, Dec 12, 2021 at 8:22 PM Antony Stone <<a href="mailto:Antony.Stone@freeswitch.open.source.it" target="_blank">Antony.Stone@freeswitch.open.source.it</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
On Friday 10 December 2021 at 06:54:23, Podrigal, Aron wrote:<br>
<br>
> Hi,<br>
> <br>
> I am experiencing weird behavior.<br>
> <br>
> I have my nameserver set to 1.1.1.1, doing sofia_dig returns no results,<br>
> one request out of five succeeds.<br>
<br>
I cannot reproduce that (FreeSwitch 1.10.7 running under Debian 10 / Devuan <br>
3):<br>
<br>
freeswitch> sofia_dig -v @<a href="http://1.1.1.1" rel="noreferrer" target="_blank">1.1.1.1</a>
<a href="http://google.com" rel="noreferrer" target="_blank">google.com</a><br>
Preference         Weight     Transport     Port     Address<br>
================================================================================<br>
@<a href="http://1.1.1.1" rel="noreferrer" target="_blank">1.1.1.1</a>   1       1.000         udp        5060     1.1.1.1<br>
           2       1.000         tcp        5060     1.1.1.1<br>
<a href="http://google.com" rel="noreferrer" target="_blank">google.com</a> 1       0.250         udp        5060     2a00:1450:4009:81e::200e<br>
           1       0.250         tcp        5060     2a00:1450:4009:81e::200e<br>
           1       0.250         udp        5060     142.250.187.206<br>
           1       0.250         tcp        5060     142.250.187.206<br>
<br>
I get a result every single time.<br>
<br>
<br>
Antony.<br>
<br>
-- <br>
<flopsie> yes, but this is #lbw, we don't do normal<br>
<br>
                                                   Please reply to the list;<br>
                                                         please *don't* CC me.<br>
<br>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">
https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">
https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote>
</div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">
https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">
https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote>
</div>
</div>
</div>
</body>
</html>