Freenom DNS API
Project description
Freenom-dns Script
An unofficial python implementation for managing freenom.com dns records.
Freenom
Freenom is the world's first and only free domain provider.
Install
pip install git+https://github.com/Shm013/freenom-dns.git
How to use
from freenom import Freenom
if __name__ == '__main__':
freenom = Freenom('your username', 'your password')
###################################################
pub_ip = freenom.getPublicIP()
# add or modify a record
freenom.setRecord('your domain', '', 'a', pub_ip)
freenom.setRecord('your domain', 'www', 'a', pub_ip)
freenom.setRecord('your domain', 'test', 'a', pub_ip)
# delete a record
freenom.delRecord('your domain', 'test')
# show all records with domain
freenom.showRecords('your domain')
print results
doLogin: Login successfully.
PublicIP: xxx.xxx.xxx.xxx
setRecord: There were no changes
setRecord: There were no changes
setRecord: Record added successfully
delRecord: Record deleted successfully
--------------your domain--------------
['', 'A', '3600', 'xxx.xxx.xxx.xxx']
['WWW', 'A', '3600', 'xxx.xxx.xxx.xxx']
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
freenom-0.0.2.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file freenom-0.0.2.tar.gz
.
File metadata
- Download URL: freenom-0.0.2.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 676dbacc5aa2a45c34db359f2497d1dd329ceb30e3bf9d57d795290328cbcd14 |
|
MD5 | c04231579ae39719bc508d18df173e84 |
|
BLAKE2b-256 | b5508bac87fb1cc27ea2a802eca68720bb589b1914603420644c2b6a394c38ac |
File details
Details for the file freenom-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: freenom-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06e25b6ef1ee94b14aab6b156ce9f351968c9bb88e082ca578484adb37d1324d |
|
MD5 | 80fc16f019dae4b2cf7c4456db356525 |
|
BLAKE2b-256 | fa3ca1f53d9413e8de14dd7ee6fe9a989052d2ae93ce2e0cb8a664e533275107 |