<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 id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">go to read isc bind view</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">-------------------</p>
<p style="margin-top:0;margin-bottom:0">Alberto Colosi</p>
<p style="margin-top:0;margin-bottom:0">ITC NetWork & Security<br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> bind-users <bind-users-bounces@lists.isc.org> on behalf of Lucio Crusca <lucio@sulweb.org><br>
<b>Sent:</b> Sunday, January 14, 2018 12:27 PM<br>
<b>To:</b> bind-users@lists.isc.org<br>
<b>Subject:</b> "rule based" A records</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">I'm not sure this feature exists, and, even then, I don't know how it's
<br>
called.<br>
<br>
I need my Bind to resolve names to different IP addresses based on the <br>
subnet the request comes from.<br>
<br>
E.g. I have a Bind instance on a Debian virtual server 10.7.33.111 <br>
(network 10.7.33.0/24). Then I have a web server on another Debian <br>
virtual server 10.7.33.103, same local network.<br>
The host system has only one public IP address and forwards connections <br>
to the correct virtual server based on the TCP/UDP port.<br>
<br>
PHP code of the websites often needs to contact the same hosted websites <br>
by name: however all the websites names resolve to the public IP address <br>
of the host, and the host does not route connections coming from the <br>
virtual hosts back to the same virtual hosts.<br>
<br>
By now, I'm adding each domain name to the /etc/hosts file of the <br>
webserver, so that it takes precedence over the DNS name resolution. It <br>
works, but it's not a clean solution.<br>
<br>
Is it possible to configure Bind so that <a href="http://www.example.com" id="LPlnk926427" previewremoved="true">
www.example.com</a> resolves to
<div id="LPBorder_GT_15159302654890.22880187778619543" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15159302654860.04684760444113578" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" role="presentation" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_15159302654870.0009215753110782821" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_15159302654870.7749961153280733"></div>
<div id="LPTitle_15159302654870.49604294871875687" style="top: 0px; color: rgb(0, 1, 255); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_normal", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15159302654880.12064915015889455" style="text-decoration: none;" href="http://www.example.com/" target="_blank">Example Domain</a></div>
<div id="LPMetadata_15159302654880.5361268254503551" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_semibold", "Segoe UI Semibold", "Segoe WP Semibold", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
www.example.com</div>
<div id="LPDescription_15159302654880.9832170692842165" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_semibold", "Segoe UI Semibold", "Segoe WP Semibold", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
Example Domain. This domain is established to be used for illustrative examples in documents. You may use this domain in examples without prior coordination or asking ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
1.2.3.4 when the request comes from the internet, but resolves to <br>
10.7.33.103 when the request comes from the local network?<br>
_______________________________________________<br>
Please visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" id="LPlnk930373" previewremoved="true">
https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list
<div id="LPBorder_GT_15159302939080.3334071119792915" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15159302939060.7129093720211813" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" role="presentation" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_15159302939060.9466782245147313" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_15159302939060.4768847547274968"></div>
<div id="LPTitle_15159302939060.06536247536698003" style="top: 0px; color: rgb(0, 1, 255); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_normal", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15159302939070.8319776308904561" style="text-decoration: none;" href="https://lists.isc.org/mailman/listinfo/bind-users" target="_blank">bind-users Info Page - lists.isc.org Mailing Lists</a></div>
<div id="LPMetadata_15159302939070.4386603242784589" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_semibold", "Segoe UI Semibold", "Segoe WP Semibold", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
lists.isc.org</div>
<div id="LPDescription_15159302939070.27021982915250464" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_semibold", "Segoe UI Semibold", "Segoe WP Semibold", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
To see the collection of prior postings to the list, visit the bind-users Archives. Using bind-users: To post a message to all the list members, send ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
bind-users mailing list<br>
bind-users@lists.isc.org<br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" id="LPlnk373954" previewremoved="true">https://lists.isc.org/mailman/listinfo/bind-users</a>
<div id="LPBorder_GT_15159302938730.5664579028572054" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15159302938710.22380295017565954" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" role="presentation" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_15159302938720.9808921103579907" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_15159302938720.4713429527312214"></div>
<div id="LPTitle_15159302938720.03366909827124842" style="top: 0px; color: rgb(0, 1, 255); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_normal", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15159302938720.8698416791097153" style="text-decoration: none;" href="https://lists.isc.org/mailman/listinfo/bind-users" target="_blank">bind-users Info Page - lists.isc.org Mailing Lists</a></div>
<div id="LPMetadata_15159302938730.699660958563939" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_semibold", "Segoe UI Semibold", "Segoe WP Semibold", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
lists.isc.org</div>
<div id="LPDescription_15159302938730.7112641653939006" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_semibold", "Segoe UI Semibold", "Segoe WP Semibold", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
To see the collection of prior postings to the list, visit the bind-users Archives. Using bind-users: To post a message to all the list members, send ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>