Skip to content

HoneyLuka/dnspod_updator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dnspod_updator

A ruby script for update dnspod ddns record.

Requirements

  • Ruby (>= 2.0.0)

Preparation

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

Usage

ruby dnspod_updator.rb

You can set a schedule task on your NAS to update ip automatically.

About

A script for update dnspod ddns record

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages