A ruby script for update dnspod ddns record.
- Ruby (>= 2.0.0)
Before using the script, you need to fill in your dnspod information into the file.
$params = {
'login_token' => '#{REPLACE_ME}',
'format' => 'json',
'domain' => '#{REPLACE_ME}',
'record_id' => '#{REPLACE_ME}',
}
$sub_domain = 'www'
-
login_token: You can get login_token from here. NOTE THAT login_token format is 'ID,Token'. For more information about login_token.
-
domain: Which domain you want to modify. You can get domain_id by API Domain.List
-
record_id: Which record you want to modify. You can get record_id by API Record.List
-
sub_domain: Set sub domain
ruby dnspod_updator.rb
You can set a schedule task on your NAS to update ip automatically.