Automatically update external IP in DNS records

7 posts / 0 new
Last post
#1 Mon, 03/23/2009 - 09:11
tobru

Automatically update external IP in DNS records

Hi,

My Virtualmin Server is behind a NAT router. That means, it has a private IP. To reach the server from the Internet, the DNS resolves to the external IP. This IP changes from time to time, so I have to manually update all DNS records... Is there a way to automate this?

I know that there is a tool "Addresses and Networking" -> "Change IP Addresses", but this is only to change the IP of the server (f.e. if I change the Network Interface IP of the server...).

Best Regards, Tobias<br><br>Post edited by: tobru, at: 2009/03/23 09:12

Mon, 03/23/2009 - 09:24
ronald
ronald's picture

you need a service as dyndns. virtualmin has a module for it but create an account first

http://www.dyndns.com/services/dns/dyndns/

Mon, 03/23/2009 - 09:36 (Reply to #2)
tobru

Thanks...

But thats not what I'm looking for. I have real domains, f.e. www.tobru.ch and I'm hosting them on my server with my own DNS server (that has several reasons...) with a zonetransfer to DynDNS.
So I'm looking for something that updates the DNS records on my DNS server when the external IP changes (with everything you have to do, f.e. serial number change, zone reload).
If there is nothing that does this automatically, is there a tool where I can do a bulk update (give to old and the new IP and it goes through all zones and exchanges the old ip with the new -&gt; also known as search and replace)?

Tobias

Mon, 03/23/2009 - 10:34 (Reply to #3)
ronald
ronald's picture

ah
under Addresses and Networking - Dynamic IP Update
would that be it?
or manually under Addresses and Networking - Change IP Addresses ?

Mon, 03/23/2009 - 10:43 (Reply to #4)
tobru

&quot;Dynamic IP Update&quot; is only for external services like DynDNS, but not for the Bind DNS Server installed on the Virtualmin server..
&quot;Change IP Addresses&quot; is only for changing the IP when you added a IP or changed the IP of the server, so that f.e. the Apache config (Listen, VirtualServer config) can be adjusted, but not the DNS records.

Perhaps I have to add a feature request...

Mon, 03/23/2009 - 11:43 (Reply to #5)
Joe
Joe's picture

The Dynamic IP Update feature will actually update your DNS records (and Apache config) as well as the dydns service, so it should do just what you are looking for..

--

Check out the forum guidelines!

Mon, 03/23/2009 - 11:51 (Reply to #6)
tobru

oh thanks, I will try it!

Topic locked