Koozali.org: home of the SME Server

how to update several dyndns dns on sme

TomTom

how to update several dyndns dns on sme
« on: November 14, 2005, 11:39:30 PM »
HI folks!

Thats my first post on this forum!

A few weeks ago I was wondering how to update two dyndns dns on sme startup.
I register here to ask for a solution, but a registration problem dont allow me to post...

Then I find a solution:

I edit the /etc/e-smith/events/actions/update-dns file, and I add this line:
Code: [Select]

system ("/sbin/e-smith/dynamic-dns/$service", $ipaddress->value, $account, $password, 'My_secondomain_to_update.com');

just before the last line of the file.
this line :
Code: [Select]
exec ("/sbin/e-smith/dynamic-dns/$service", $ipaddress->value, $account, $password, $domain)
which update the first domain.

It works good!
Any comments ?
Is there a better solution ?