<html xmlns:v="urn:schemas-microsoft-com:vml" 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=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@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;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
p.default, li.default, div.default
        {mso-style-name:default;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
p.msipfooterfd8c5c8a, li.msipfooterfd8c5c8a, div.msipfooterfd8c5c8a
        {mso-style-name:msipfooterfd8c5c8a;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle21
        {mso-style-type:personal-compose;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello<o:p></o:p></p>
<p class="MsoNormal">How does unbound determine the IP address and UDP port to use ?<o:p></o:p></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"><o:p> </o:p></p>
<p class="msipfooterfd8c5c8a" style="margin:0in"><span style="font-size:10.0pt;color:black">Teledyne Confidential; Commercially Sensitive Business Data</span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Tom Samplonius <tom@samplonius.org> <br>
<b>Sent:</b> Wednesday, June 16, 2021 8:51 PM<br>
<b>To:</b> Modster, Anthony <Anthony.Modster@Teledyne.com><br>
<b>Cc:</b> unbound-users@lists.nlnetlabs.nl<br>
<b>Subject:</b> Re: bind socket error<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div align="center">
<table class="MsoNormalTable" border="1" cellspacing="0" cellpadding="0" width="150" style="width:112.5pt;border:outset #898989 1.0pt">
<tbody>
<tr>
<td style="border:inset #898989 1.0pt;background:#FDFFB2;padding:3.75pt 3.75pt 3.75pt 3.75pt">
<p class="MsoNormal" align="center" style="text-align:center"><span style="font-size:8.0pt">External Email<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">  There are a few possible causes:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">1. The IP address isn’t assigned, or the interface that it is assigned to, is down.  There is a message in your log account about wireless just connecting?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">2. The UDP port is already in use by something else on the system.  My understanding is that Unbound manages its own port range.  No other process on your system should be active in that range.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">3. You have an SELinux profile that doesn’t allow Unbound to use same UDP port range that Unbound is configured to use.  At one point, the CentOS Unbound rpm had a SELinux profile inconsistent with the Unbound.  Or you changed the Unbound
 config, and didn’t update SELInux.  <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Tom<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On Jun 16, 2021, at 10:56 AM, Modster, Anthony via Unbound-users <<a href="mailto:unbound-users@lists.nlnetlabs.nl">unbound-users@lists.nlnetlabs.nl</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="default" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:8.0pt;margin-left:0in;line-height:12.95pt">
<span style="color:#00000A">Hello<o:p></o:p></span></p>
<p class="default" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:8.0pt;margin-left:0in;line-height:12.95pt">
<span style="color:#00000A">What causes the error to bind socket ?<o:p></o:p></span></p>
<p class="default" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:8.0pt;margin-left:0in;line-height:12.95pt">
<span style="color:#00000A">We have seen these errors when configured for “unbound resolver” or “unbound forwarding” modes.<o:p></o:p></span></p>
<p class="default" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:8.0pt;margin-left:0in;line-height:12.95pt">
<span style="color:#00000A">They seem to not cause a problem, the resolver eventually resolves the request.<o:p></o:p></span></p>
<p class="default" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:8.0pt;margin-left:.25in;text-indent:-.25in;line-height:12.95pt">
<span style="font-family:Symbol;color:#00000A">·</span><span style="font-size:7.0pt;font-family:"Times New Roman",serif;color:#00000A">        <span class="apple-converted-space"> </span></span><span style="color:#00000A">2021 Jun 16 17:17:34+00:00 wglng-17
 unbound [err] [12764:0] error: can\'t bind socket: Cannot assign requested address for 192.168.0.131 port 59253 (len 16)<o:p></o:p></span></p>
<p class="default" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:8.0pt;margin-left:.25in;text-indent:-.25in;line-height:12.95pt">
<span style="font-family:Symbol;color:#00000A">·</span><span style="font-size:7.0pt;font-family:"Times New Roman",serif;color:#00000A">        <span class="apple-converted-space"> </span></span><span style="color:#00000A">2021 Jun 16 17:17:34+00:00 wglng-17
 unbound [info] [12764:0] info: error sending query to auth server ip4 8.8.8.8 port 53 (len 16)<o:p></o:p></span></p>
<p class="default" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:8.0pt;margin-left:.25in;text-indent:-.25in;line-height:12.95pt">
<span style="font-family:Symbol;color:#00000A">·</span><span style="font-size:7.0pt;font-family:"Times New Roman",serif;color:#00000A">        <span class="apple-converted-space"> </span></span><span style="color:#00000A">2021 Jun 16 17:17:34+00:00 wglng-17
 unbound [info] [12764:0] info: processQueryTargets:<span class="apple-converted-space"> </span><a href="http://www.carillon.ca/">www.carillon.ca</a>. A IN<o:p></o:p></span></p>
<p class="default" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:8.0pt;margin-left:.25in;text-indent:-.25in;line-height:12.95pt">
<span style="font-family:Symbol;color:#00000A">·</span><span style="font-size:7.0pt;font-family:"Times New Roman",serif;color:#00000A">        <span class="apple-converted-space"> </span></span><span style="color:#00000A">2021 Jun 16 17:17:35+00:00 wglng-17
 wireless [notice] LinkManagerHandler() base station connection BSC1 r0=up r1=dn r2=dn r3=dn eth=dn  BSC2 r0=dn r1=dn r2=dn r3=dn eth=dn<o:p></o:p></span></p>
<p class="default" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:8.0pt;margin-left:.25in;text-indent:-.25in;line-height:12.95pt">
<span style="font-family:Symbol;color:#00000A">·</span><span style="font-size:7.0pt;font-family:"Times New Roman",serif;color:#00000A">        <span class="apple-converted-space"> </span></span><span style="color:#00000A">2021 Jun 16 17:17:34+00:00 wglng-17
 unbound [info] [12764:0] info: DelegationPoint<.>: 0 names (0 missing), 1 addrs (1 result, 0 avail) parentNS<o:p></o:p></span></p>
<p class="default" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:8.0pt;margin-left:.25in;text-indent:-.25in;line-height:12.95pt">
<span style="font-family:Symbol;color:#00000A">·</span><span style="font-size:7.0pt;font-family:"Times New Roman",serif;color:#00000A">        <span class="apple-converted-space"> </span></span><span style="color:#00000A">2021 Jun 16 17:17:34+00:00 wglng-17
 unbound [info] [12764:0] info: sending query:<span class="apple-converted-space"> </span><a href="http://www.carillon.ca/">www.carillon.ca</a>. A IN<o:p></o:p></span></p>
<p class="default" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:8.0pt;margin-left:.25in;text-indent:-.25in;line-height:12.95pt">
<span style="font-family:Symbol;color:#00000A">·</span><span style="font-size:7.0pt;font-family:"Times New Roman",serif;color:#00000A">        <span class="apple-converted-space"> </span></span><span style="color:#00000A">2021 Jun 16 17:17:34+00:00 wglng-17
 unbound [err] [12764:0] error: can\'t bind socket: Cannot assign requested address for 10.130.230.8 port 19652 (len 16)<o:p></o:p></span></p>
<p class="default" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:8.0pt;margin-left:.25in;text-indent:-.25in;line-height:12.95pt">
<span style="font-family:Symbol;color:#00000A">·</span><span style="font-size:7.0pt;font-family:"Times New Roman",serif;color:#00000A">        <span class="apple-converted-space"> </span></span><span style="color:#00000A">2021 Jun 16 17:17:34+00:00 wglng-17
 unbound [info] [12764:0] info: error sending query to auth server ip4 8.8.8.8 port 53 (len 16)<o:p></o:p></span></p>
<p class="default" style="mso-margin-top-alt:0in;margin-right:.5in;margin-bottom:8.0pt;margin-left:.75in;text-indent:-.25in;line-height:12.95pt">
<span style="font-family:Symbol;color:#00000A">·</span><span style="font-size:7.0pt;font-family:"Times New Roman",serif;color:#00000A">        <span class="apple-converted-space"> </span></span><span style="color:#00000A">2021 Jun 16 17:17:34+00:00 wglng-17
 unbound [info] [12764:0] info: processQueryTargets:<span class="apple-converted-space"> </span><a href="http://www.carillon.ca/">www.carillon.ca</a>. A IN<o:p></o:p></span></p>
<div>
<p class="MsoNormal">Thanks<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Teledyne Confidential; Commercially Sensitive Business Data</span><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif"><o:p></o:p></span></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>