Domain monitoring & registration with AWS route53
Project description
Domain monitoring & registration with AWS route53
Usage
Show help message and exit
dm53 --help
Check availability of a domain
dm53 check --domain-name example.com
Note: Make sure AWS credentials are configured, following example uses env variables
AWS_ACCESS_KEY_ID=my-access-key \ AWS_SECRET_ACCESS_KEY=my-secret-access-key \ dm53 check --domain-name example.comfor more details see boto3 docs
Keep checking with a 5 seconds interval until the domain becomes available
dm53 check --domain-name example.com --monitor --interval 5
Register a domain if available
dm53 check --domain-name example.com --register --path /path/to/registration-details.json
Note: Registration details must be provided through a JSON file, see this example or read more in AWS docs
Run in background to ignore hangup signal with
nohup, forward output to
examplecom.out
nohup dm53 check --domain-name example.com --monitor > examplecom.out 2>&1 &
Note: The
nohup
command prints a shell job ID and a process ID. Terminate the process withkill -9 <PID>
.
Contributing
Contributions are welcome via pull requests.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Develop
Activate virtual environment
poetry shell
Install dependencies
poetry install --remove-untracked
Install git hooks
pre-commit install --hook-type pre-commit
Run linter
flake8 .
Format code
black .
Sort imports
isort .
Install current project from branch
poetry add git+https://github.com/MousaZeidBaker/dm53.git#branch-name
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.