Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

I'm trying to setup ddclient on my ubuntu server to update my DNS records on zoneedit for when my public IP changes.

It's updating fine, the problem is that it's giving zoneedit my local IP instead of my public one.

SUCCESS:  updating IP address set to (200: Update succeeded.)

My ddclient config file looks like this:

use=if, if=eth0

Why is it updating to my local IP instead of my public one?

Update: could this be because I'm behind a router? If so, how should I configure ddclient to get the public IP?

share|improve this question
up vote 10 down vote accepted

Yes, the issue is because you're behind a router. The best solution would be to see if you can install a ddns client on the router itself. Otherwise there are ddns update tools that finger a remote server and ascertain your IP by what this yields.

This can be done by replacing:

use=if, if=eth0

With this:


Which is apparently the default configuration generated by debconf on Debian systems.

share|improve this answer
ah - thanks. I presumed ddclient would use a remote server to get the IP, if anyone knows how to set this up that would be great. – Alex Coplan Feb 13 '12 at 10:42
now solved - see my answer – Alex Coplan Feb 13 '12 at 10:58


use=if, if=eth0


share|improve this answer
What does this do? Would you add some information or context as to why this is a solution? – Raystafarian Dec 3 '15 at 17:49 just displays your current ip adress without the "Your current Ip Adress is:..." thing. So you can CURL it too – Marvin Wiezorke Dec 7 '15 at 7:24
Please add that information to your answer and an example of how it's different than the already accepted answer, otherwise it just looks like a duplicate answer with a different site. – Raystafarian Dec 7 '15 at 9:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .