Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have an OpenWrt 10.03, and I need to update my dynamic DNS account (e.g., OpenDNS or DYNDNS) when my IP changes. How can I do this from the terminal?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

You could look at using inadyn, a client to update your DNS entries.

There is a page about it on the DynDNS support site.

Alternatively, there is this line[1]:

curl -v -k -u user:password "https://members.dyndns.org/nic/update?hostname=&myip=$(curl -s http://checkip.dyndns.org | sed 's/[a-zA-Z/ :]//g')&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG"


[1] Untested: from commandlinefu: http://www.commandlinefu.com/commands/view/2492/update-dyndns.org-with-your-external-ip.

share|improve this answer

If you have a recent version of openwrt and you have a package called luci-app-ddns where you can configure it on your web management console. Also check the OpenWrt documentation on this issue.

share|improve this answer

Your Answer

 
discard

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.