<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Good morning Ed,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Just thought I’d toss this out there to be aware of; <a href="https://bst.cloudapps.cisco.com/bugsearch/bug/CSCuy96398?referring_site=cisco_cli_analyzer">
CsCuy96398</a> (DNS query delay). While your 16.3.5 version is not listed as a known affected release, its also not specifically listed as a known fixed release. The good news is that 16.3.1 is listed as a known fixed release, so your 16.3.5 likely has the
fix baked in (but who really knows when it comes to IOS bugs). I’d just keep it in the back of your mind if you have to tshoot
<span style="font-family:"Segoe UI Emoji",sans-serif">😊</span>.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Here is the bug condition:</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><i>Upon start-up/reboot the DNS process doesn't initiate a query till around 18 minutes after the boot up. This long delay results in hostname configured features (ex:NTP servers) not being used till this process is complete. Even when
doing this time the DNS server is reachable.<o:p></o:p></i></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Ryan<o:p></o:p></p>
<div style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:ealeatherman@gmail.com">Ed Leatherman</a><br>
<b>Sent: </b>Tuesday, March 6, 2018 7:31 AM<br>
<b>To: </b><a href="mailto:avholloway+cisco-voip@gmail.com">Anthony Holloway</a><br>
<b>Cc: </b><a href="mailto:cisco-voip@puck.nether.net">Cisco VOIP</a><br>
<b>Subject: </b>Re: [cisco-voip] session target dns</p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks Anthony, That was spot on what I was trying to figure out. I've been using server-groups up until now (and will continue on the CUCM facing side), the service provider is forcing the change on the side facing them.
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Loren: That's an interesting idea to lock in the host resolution on the CUBE itself, but in this case I think it might set me up for an outage if the service provider changes their IP Addressing. Maybe I can get them to commit to telling
me before they change those..<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Mon, Mar 5, 2018 at 2:31 PM, Anthony Holloway <<a href="mailto:avholloway+cisco-voip@gmail.com" target="_blank">avholloway+cisco-voip@gmail.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt">Loren,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt">Just out of curiosity, why didn't you just use session server groups? Based on the config you shared, it looks like it would achieve the same thing, but with less config, and not adding in the DNS stack within
IOS.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt">Ed,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt">*Note, you cannot use DNS in server groups, so it's one or the other.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt"><o:p> </o:p></p>
</div>
<p class="MsoNormal" style="margin-left:4.8pt">I also think it's important to know that the IOS code is written such that it will look for SRV records first, and then fallback to looking for an A (host) record once the DNS timeouts.
<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:4.8pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt">E.g.,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt">You enter "session target dns:<a href="http://collab.domain.com" target="_blank">collab.domain.com</a>"<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt">IOS looks for _sip._<a href="http://udp.collab.domain.com" target="_blank">udp.collab.domain.com</a> SRV record first, timesout, then looks for
<a href="http://collab.domain.com" target="_blank">collab.domain.com</a> host record second.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt">*Note that the outgoing session transport on IOS is UDP by default, unless you change it to TCP with the command "session transport tcp" at the "voice service voip" level, or at the dial-peer level. So, having
a _sip._tcp SRV record on your CUBE would create a confusing scenario. Contrast this with the incoming connection, which can be either. However, SRV records, like Loren is showing, are for outbound connection establishments.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt">I have not done an extensive amount of testing here, but I would be curious to know if IOS handles the TTL for the DNS record correctly, or if it queries DNS for every setup like how that one defect was hitting
CUCM SIP trunks for a while there. I looked for "TTL" in the CVP Config guide, but it didn't say.<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:4.8pt">On Mon, Mar 5, 2018 at 11:19 AM Loren Hillukka <<a href="mailto:lchillukka@hotmail.com" target="_blank">lchillukka@hotmail.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal" style="margin-left:9.6pt">You can have your gw query your DNS server, and you have to add SRV records to your central DNS server (like with the jabber entries required to get jabber sign-in to work). </p>
<p class="MsoNormal" style="margin-left:9.6pt">Here’s the example of doing local DNS to static entries on the gateway itself, from the CVP 10 config guide. CVP is where I first started doing dns srv on the local gateway, as I preferred breaking the call center
myself instead of having the AD/DNS teams do it for me without me knowing ;-)</p>
<p class="MsoNormal" style="margin-left:9.6pt">===========</p>
<p class="MsoNormal" style="margin-left:9.6pt;line-height:16.5pt">You can also configure the Gateway statically instead of using DNS. The following example shows how both the A and SRV type records could be configured: </p>
<p class="MsoNormal" style="margin-left:9.6pt;line-height:16.5pt">ip host <a href="http://cvp4cc2.cisco.com/" target="_blank">cvp4cc2.cisco.com</a> 10.4.33.132</p>
<p class="MsoNormal" style="margin-left:9.6pt;line-height:16.5pt">ip host <a href="http://cvp4cc3.cisco.com/" target="_blank">cvp4cc3.cisco.com</a> 10.4.33.133</p>
<p class="MsoNormal" style="margin-left:9.6pt;line-height:16.5pt">ip host <a href="http://cvp4cc1.cisco.com/" target="_blank">cvp4cc1.cisco.com</a> 10.4.33.131</p>
<p class="MsoNormal" style="margin-left:9.6pt;line-height:16.5pt">For SIP/TCP:</p>
<p class="MsoNormal" style="margin-left:9.6pt;line-height:16.5pt">ip host _sip._<a href="http://tcp.cvp.cisco.com/" target="_blank">tcp.cvp.cisco.com</a> srv <a href="tel:50%2050%205060" target="_blank">50 50 5060</a><a href="http://cvp4cc3.cisco.com/" target="_blank">cvp4cc3.cisco.com</a></p>
<p class="MsoNormal" style="margin-left:9.6pt;line-height:16.5pt">ip host _sip._<a href="http://tcp.cvp.cisco.com/" target="_blank">tcp.cvp.cisco.com</a> srv <a href="tel:50%2050%205060" target="_blank">50 50 5060</a><a href="http://cvp4cc2.cisco.com/" target="_blank">cvp4cc2.cisco.com</a></p>
<p class="MsoNormal" style="margin-left:9.6pt;line-height:16.5pt">ip host _sip._<a href="http://tcp.cvp.cisco.com/" target="_blank">tcp.cvp.cisco.com</a> srv <a href="tel:50%2050%205060" target="_blank">50 50 5060</a><a href="http://cvp4cc1.cisco.com/" target="_blank">cvp4cc1.cisco.com</a></p>
<p class="MsoNormal" style="margin-left:9.6pt;line-height:16.5pt">For SIP/UDP:</p>
<p class="MsoNormal" style="margin-left:9.6pt;line-height:16.5pt">ip host _sip._<a href="http://udp.cvp.cisco.com/" target="_blank">udp.cvp.cisco.com</a> srv <a href="tel:50%2050%205060" target="_blank">50 50 5060</a><a href="http://cvp4cc3.cisco.com/" target="_blank">cvp4cc3.cisco.com</a></p>
<p class="MsoNormal" style="margin-left:9.6pt;line-height:16.5pt">ip host _sip._<a href="http://udp.cvp.cisco.com/" target="_blank">udp.cvp.cisco.com</a> srv <a href="tel:50%2050%205060" target="_blank">50 50 5060</a><a href="http://cvp4cc2.cisco.com/" target="_blank">cvp4cc2.cisco.com</a></p>
<p class="MsoNormal" style="margin-left:9.6pt;line-height:16.5pt">ip host _sip._<a href="http://udp.cvp.cisco.com/" target="_blank">udp.cvp.cisco.com</a> srv <a href="tel:50%2050%205060" target="_blank">50 50 5060</a><a href="http://cvp4cc1.cisco.com/" target="_blank">cvp4cc1.cisco.com</a></p>
<p class="MsoNormal" style="margin-left:9.6pt"> ============</p>
<p class="MsoNormal" style="margin-left:9.6pt">Then your dial-peer would have session target dns:<a href="http://cvp.cisco.com/" target="_blank">cvp.cisco.com</a> which would point to the SRV record, which would use the weight/priority values to choose the
final host, and resolve the selected host to an IP using the normal "ip host name x.x.x.x" entry</p>
</div>
</div>
<div>
<div>
<div id="m_5713967320667381579m_-7009208758299197112AppleMailSignature">
<p class="MsoNormal" style="margin-left:9.6pt"><o:p> </o:p></p>
</div>
<div id="m_5713967320667381579m_-7009208758299197112AppleMailSignature">
<p class="MsoNormal" style="margin-left:9.6pt"><o:p> </o:p></p>
</div>
<p class="MsoNormal" style="margin-left:9.6pt">Loren<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:9.6pt">
<br>
On Mar 5, 2018, at 10:15 AM, Ed Leatherman <<a href="mailto:ealeatherman@gmail.com" target="_blank">ealeatherman@gmail.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal" style="margin-left:45.6pt">Hi everyone, <o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:45.6pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:45.6pt">Hopefully a quick question - in a dial-peer on CUBE (16.3.5) how does session target dns: resolve to an IP? I've never used DNS as target before for this.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:45.6pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:45.6pt">Does CUBE just do a query for the A record by default, or does it do a SRV query by default? I have a SIP provider that wants to start using SRV for their SBC(s) and I'm researching how to setup my end in IOS.
If it doesn't query SRV default, where do I toggle that behavior?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:45.6pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:45.6pt">The command reference just says "Configures the host device housing the domain name system (DNS) server that resolves the name of the dial peer to receive calls."<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:45.6pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:45.6pt">I've found the knob to tell it what SRV format to use in the sip-ua section. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:45.6pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:45.6pt">Thanks!<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:45.6pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:45.6pt"><br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:45.6pt"><o:p> </o:p></p>
</div>
<p class="MsoNormal" style="margin-left:45.6pt">-- <o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:45.6pt">Ed Leatherman<o:p></o:p></p>
</div>
</div>
</div>
</div>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="margin-left:45.6pt">_______________________________________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><o:p></o:p></p>
</div>
</blockquote>
</div>
<p class="MsoNormal" style="margin-left:9.6pt">_______________________________________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
</div>
<p class="MsoNormal">Ed Leatherman<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>