Skip to main content

Open Cloud PTR Creater

date:

2013-10-11 09:51

tags:

Rackspace, PTR, DNS, CloudServer, NextGen. cloud

category:

*nix

This is a simple script that will create a PTR record for a Next Generation Cloud Server.

The function of the script is such that, you simply need to enter your details and all of the rest is done automagically.

Use Case :
  • Create a PTR (Reverse DNS) Record

  • Update a PTR (Reverse DNS) Record

Application :

The Script is run with a series of command line arguments.

Function :

The script will query the Rackspace API for your cloud server, build a PTR record from the provided data and set the record for you.

Example Command:

./ptrcreate.py -U <UserName> -A <Password> -R <Region> -N <ServerName> -D <DomainName>

Please run ptrcreate.py --help for all available options.

ptrcreate.py create you a New PTR record for your cloud server.

optional arguments:

-h, --help           show this help message and exit

-D , --domain-name   Domain Name for the PTR Record
--ttl                TTL of DNS Record

-N , --server-name   The name of your server
-I , --server-id     The ID of your server

-U , --user          Your Rackspace Username
-P , --password      Your Rackspace Password
-A , --apikey        Your Rackspace API Key
-T , --token         Your Rackspace Token
-R , --region        Regions: ['dfw', 'ord', 'iad', 'lon', 'syd']

--auth-url           Optional Override for the Authentication URL
--auth-version       Optional Rackspace Authentication Version

--debug              Enable Debug Mode
--no-confirm         Skip Record Confirmation.

-V, --version        show program's version number and exit

GPLv3 Licensed PTR Create Version 2.0.

You can also export your Rackspace Credentials into environment variables which can help in automating the creation of PTR Records.

Here are All of the Available Environment Variables:

OS_USERNAME="Your Rackspace Username"
OS_PASSWORD="Your Rackspace Password"
OS_APIKEY="Your Rackspace API Key"
OS_TOKEN="Your Rackspace Token"
OS_REGION="Your Rackspace Region"
OS_AUTH_URL="Optional Override for the Authentication URL"
OS_AUTH_VERSION="Optional Rackspace Authentication Version"

Want to see the Application in Action? Check out http://asciinema.org/a/5877

License:

Copyright [2013] [Kevin Carter]

This software has no warranty, it is provided ‘as is’. It is your responsibility to validate the behavior of the routines and its accuracy using the code provided. Consult the GNU General Public license for further details (see GNU General Public License). http://www.gnu.org/licenses/gpl.html

Metadata

Release files for ptrcreate 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ptrcreate 2.0.0
File Size Uploaded Provenance Actions
ptrcreate-2.0.0.tar.gz 7.8 kB Without provenance Details for ptrcreate-2.0.0.tar.gz

Release files / ptrcreate-2.0.0.tar.gz

Download URL ptrcreate-2.0.0.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
281db5268b5b4f38948de08ebddcec3bf8621c1c837d1c9b875bc2500ffd7fd0
BLAKE2b-256 checksum
How to use checksums
a1ba3be83a64afd0aab07c57015a1f4131e56fc5205c7b46f5c897bd054d176e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ptrcreate 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page