go to read isc bind view
------------------- Alberto Colosi ITC NetWork & Security ________________________________ From: bind-users <bind-users-boun...@lists.isc.org> on behalf of Lucio Crusca <lu...@sulweb.org> Sent: Sunday, January 14, 2018 12:27 PM To: bind-users@lists.isc.org Subject: "rule based" A records I'm not sure this feature exists, and, even then, I don't know how it's called. I need my Bind to resolve names to different IP addresses based on the subnet the request comes from. E.g. I have a Bind instance on a Debian virtual server 10.7.33.111 (network 10.7.33.0/24). Then I have a web server on another Debian virtual server 10.7.33.103, same local network. The host system has only one public IP address and forwards connections to the correct virtual server based on the TCP/UDP port. PHP code of the websites often needs to contact the same hosted websites by name: however all the websites names resolve to the public IP address of the host, and the host does not route connections coming from the virtual hosts back to the same virtual hosts. By now, I'm adding each domain name to the /etc/hosts file of the webserver, so that it takes precedence over the DNS name resolution. It works, but it's not a clean solution. Is it possible to configure Bind so that www.example.com<http://www.example.com> resolves to Example Domain<http://www.example.com/> www.example.com 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 ... 1.2.3.4 when the request comes from the internet, but resolves to 10.7.33.103 when the request comes from the local network? _______________________________________________ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users Info Page - lists.isc.org Mailing Lists<https://lists.isc.org/mailman/listinfo/bind-users> lists.isc.org 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 ... bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users bind-users Info Page - lists.isc.org Mailing Lists<https://lists.isc.org/mailman/listinfo/bind-users> lists.isc.org 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 ...
_______________________________________________ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users