Skip to main content

Reserves an appropriate ip in a PowerDNS installation for a given hostname, updating reverse/forward/text records as well

Project description

Powerglove DNS
==============================

powerglove DNS is a simple tool for reserving an IP and hostname pair in a Power DNS installation

usage: powerglovedns [-h] [--remove FQDN] [--ttl TTL] [--domain name]
[--is_present FQDN] [--text TEXT_RECORD_CONTENTS]
[--cname CNAME FQDN A Record FQDN]
[hostname] [IP [IP ...]]

Reserve an ip address in the network's powerdns install

positional arguments:
hostname specify the hostname (NOT full-qualified domain name)
that you want to reserve an IP for. It will be paired
with the appropriate domain name to form a fully
qualified domain name. Not read if any of the
following options are set: --remove, --cname,
--is_present
IP reserve an ip between this range (*.*.*.0, *.*.*.1 and
*.*.*.255 will not be used). Acceptable formats are
CIDR (e.g. 192.168.133/23), IP Glob (e.g.
192.168.133-134.*), expicit pair of first/last IPs
(e.g. 192.168.133.0 192.168.134.255), or may be
omitted if --domain is specified.

optional arguments:
-h, --help show this help message and exit
--remove FQDN Remove the provided fully qualified domain name, if
specified, no hostnames or cnames will be added
--ttl TTL the TTL that should be set with the added record
[default: 300]
--domain name instead of specifying an IPRange or CIDR, specify the
domain you wish to place the hostname (e.g. test.tld
or example.tld)
--is_present FQDN returns True if a provided fully-qualified domain name
is present in the DNS A records
--text TEXT_RECORD_CONTENTS
if specified, make a text record with the provided
contents (as a string)
--cname CNAME FQDN A Record FQDN
if provided, create a CNAME alias from the
provided cname fully-qualified-domain-name to the
provided A record fully-qualified domain name. No new
hostnames will be added

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

powerglove-dns-1.0.1.tar.gz (12.5 kB view hashes)

Uploaded Source

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