activating dynamicDNS for freedns.afraid.org
Project description
dyDNS
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 221a14c97794859b59e6dff8f055beb53db66c26db2d69b2f6547219d6f5ee1c |
|
MD5 | 8cd0c4f7ac28f7f1d84049902cfe7605 |
|
BLAKE2b-256 | ad855035dc5940603d3640f0c12521b02d1e0f09a7f594097233ad67dfe1a3e8 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f444702f19870a3fd18eb84c898984a985ea8a908cc5c6ce0d87ea3ce568fa80 |
|
MD5 | c96df3d0d94ed4a6bcd6443d8a510ce2 |
|
BLAKE2b-256 | 471e03ee6ff30dd139b316ba084591aca3848c0c3ad7d3e9d9772767a0968375 |