Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have DHCP and BIND working fine to provide dynamic updates as we bring new servers online. I've got what might be a rather complicated setup beyond that which I'm hoping is possible without home-grown scripting.
We have two locations connected via VPN. Both locations use IPs in the 192.168.1.0/24 subnet. So, with the VPN, we map IP addresses such that to get to location1 we can hit 192.168.10.0/24 and to get to location2 it/s 192.168.20.0/24. Works great.
However, with the DHCP setup at location1, the DNS server there updates fine (let's say it put 'server1.domain.com' at 192.168.1.20), but we need to now get our DNS at location2 to know that 'server1.domain.com' is reachable at 192.168.10.20.
Right now we manually add the entries to the DNS server at location2. That's not very sustainable. Is what I'm trying to do possible?
There's no way to tell the DHCP server to update the record for an entirely different IP address than the one it just assigned. Also, it is not possible to tell a DNS server to send mangled updates to a slave server.[1]
The main problem here is that you're using the same subnet at to different locations, and are using NAT to hack your way around the problem. If you have administrative control over both locations, switching the subnet at one of them should be no big deal.
[1]Actually, some Cisco equipment (ASA firewalls) has the ability to mangle DNS packets between NATed hosts, provided it's the Cisco equipment that does the NATing. It works for simple A record requests, not sure if it can handle DDNS updates or zone transfers (probably not). And signing DNS zones breaks this functionality anyway.
Not the most elegant solution, but this is working for us for now. Very hacky. Runs via cron every 5-10 mins:
Nice. Adds a whole new dimension to the concept "zone transfers". Although you could probably have reconfigured one of the subnets in less time than it took to write that script.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.