Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to use both the OpenVPN and DynDNS services together? Would you advised against it for any reason (security, performance, etc.)?

I am using DynDNS for my dynamic IP. Will OpenVPN work with a dynamic IP?

share|improve this question
up vote 4 down vote accepted

The FAQ -- Running an OpenVPN server on a dynamic IP address

While OpenVPN has no trouble handling the situation of a dynamic server, some extra configuration is required.

The first step is to get a dynamic DNS address which can be configured to "follow" the server every time the server's IP address changes. There are several dynamic DNS service providers available, such as

The next step is to set up a mechanism so that every time the server's IP address changes, the dynamic DNS name will be quickly updated with the new IP address, allowing clients to find the server at its new IP address.

For that, use a NAT router appliance with dynamic DNS support, or a dynamic DNS client application such as ddclient to update the dynamic DNS address whenever the server IP address changes.

There is some more conversation at the Slashdot page on
VPN Solutions for Distributed Installations, if you don't mind sifting through it.

share|improve this answer

nik's answer does pretty much covers it, the main thing to remember is that there's a lag between when the IP address changes and when clients get the new DNS response, some ISP's even force this to be on the order of a day, forcing an hour is much more common.

If the IP address doesn't change regularly this may not be an issue.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.