Skip to main content

activating dynamicDNS for freedns.afraid.org

Project description

dyDNS

Open in Code Ocean

Cite: takefuji (2022) dyDNS for dynamic DNS updater in freedns.afraid.org [Source Code]. https://doi.org/10.24433/CO.2993693.v1

Y. Takefuji. (2023). International companies and governments need to be alerted to a fatal flaw in DOI management policy to prevent security breaches. Digital Society. https://doi.org/10.1007/s44206-023-00055-1

This is under review.

For software reproducibility validation, codeocean is used for generating DOI for publication in refereed journals (IEEE, Elsevier).

dyDNS is a PyPI package for periodically activating dynamicDNS in freedns.afraid.org.

Important information such as username, password and domain name should be encrypted with free dynamic DNS providers.

You need to have an account on freedns.afraid.org and choose dynamic domain names: https://freedns.afraid.org/

You can have up to five domain names for free dynamic DNS.

dyDNS does not need superuser privilege.

How to prepare for dyDNS

To use this PyPI dyDNS, you need to prepare for .freedns directory and two files: crypted and key.

The following is the procedure for creating two files, crypted and key, in the .freedns directory:
1.You must create .freedns directory in your home directory.
$ cd
$ mkdir .freedns
$ cd .freedns
2.In .freedns directory, you should create a plain authentication file in plain text: freedns.info.
freedns.info file has three lines (username, password, dynamic domain name).
$ cat freedns.info
USERNAME = "username_freedns.afraid.org"
PASSWORD = "password_freedns.afraid.org"
UPDATE_DOMAINS = ["your_domain_name", ] 
3. Create a plain file of encryption/decryption key for OpenSSL.
key file must contain a string or strings with any characters.
$ cat key
your_key 
4. Change to the key file permission that only you can read.
$ chmod 700 key
5. Encrypt freedns.info to crypted file.
$ openssl enc -e -aes256 -pbkdf2 -in freedns.info -out crypted -k `cat key` 
6. Delete freedns.info file for security.
$ rm freedns.info
7. ".freedns" directory has two files: crypted and key
$ ls
crypted key

How to install dyDNS

$ pip install dydns

How to run dyDNS

$ dydns

There are two types of messages from freedns.afraid.org:

b'No Updated: Address xxx.xxx.xxx.xxx has not changed.\n'

b'Updated Address xxx.xxx.xxx.xxx has changed.\n'

crontab

You should type the following command to set crontab schedule:

$ crontab -e

The following shows an example in crontab scheduler to run dyDNS every 9 minutes.

*/9 * * * * dydns >/dev/null

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dyDNS-0.0.12.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

dyDNS-0.0.12-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file dyDNS-0.0.12.tar.gz.

File metadata

  • Download URL: dyDNS-0.0.12.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for dyDNS-0.0.12.tar.gz
Algorithm Hash digest
SHA256 221a14c97794859b59e6dff8f055beb53db66c26db2d69b2f6547219d6f5ee1c
MD5 8cd0c4f7ac28f7f1d84049902cfe7605
BLAKE2b-256 ad855035dc5940603d3640f0c12521b02d1e0f09a7f594097233ad67dfe1a3e8

See more details on using hashes here.

File details

Details for the file dyDNS-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: dyDNS-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for dyDNS-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 f444702f19870a3fd18eb84c898984a985ea8a908cc5c6ce0d87ea3ce568fa80
MD5 c96df3d0d94ed4a6bcd6443d8a510ce2
BLAKE2b-256 471e03ee6ff30dd139b316ba084591aca3848c0c3ad7d3e9d9772767a0968375

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page