DUC for no-ip

4 posts / 0 new
Last post
gallo
gallo's picture
DUC for no-ip

Hi folks, anyone know how to get the router to run the DUC for no-ip so it doesnt have to be on a running pc? TIA

gallo
gallo's picture
ummmmm i believe this works

ummmmm i believe this works

curl http://username:[email protected]/nic/update?hostname=my.assi...

correct me if im wrong please.

how would i get this to run say every 5 mins?

tia

gallo
gallo's picture
ummmmmm lol, would this be

ummmmmm lol, would this be correct in the crontab

5 * * * * curl http://username:[email protected]/nic/update?hostname=my.assi...

tia

gallo
gallo's picture
ok got it, if anyone wants to

ok got it, if anyone wants to update your ip address at no-ip this works and since im a simple soul my intricacy in syntax isnt the best. ;)

ssh in

crontab -e

hit "o" to put it into editing mode

the following line puts a 5 min interval and refreshes your wan ip over at no-ip so your ddns stays up to date, minus the quotes.

" */5 * * * * curl http://user:[email protected]/nic/update?hostname=my.assigned.ddns >> /tmp/ip_update.log | date >> /tmp/ip_update.log "

replace with your user and pass and replace my.assigned.ddns with your cool url you received. I wanted to make sure it works and see when my ip might change so in your tmp folder ip_update.log is created. It will continue to grow so delete it once in a while.

To exit the editor and save the entry hit esc and then ZZ along with enter and thats all thats needed. The job starts at every 5th min of the clock. Hope this is useful for anyone.