Skip to main content

/etc/hosts provider for octoDNS

Project description

/etc/hosts provider for octoDNS

An octoDNS provider that creates a "best effort" static/emergency content that can be used in /etc/hosts to resolve things. A, AAAA records are supported and ALIAS and CNAME records will be included when they can be mapped within the zone.

Installation

Command line

pip install octodns_etchosts

requirements.txt/setup.py

Pinning specific versions or SHAs is recommended to avoid unplanned upgrades.

Versions
# Start with the latest versions and don't just copy what's here
octodns==0.9.14
octodns_etchosts==0.0.1
SHAs
# Start with the latest/specific versions and don't just copy what's here
-e git+https://git@github.com/octodns/octodns.git@9da19749e28f68407a1c246dfdf65663cdc1c422#egg=octodns
-e git+https://git@github.com/octodns/octodns_etchosts.git@ec9661f8b335241ae4746eea467a8509205e6a30#egg=octodns_powerdns

Configuration

providers:
  etchosts:
    class: octodns_etchosts.EtcHostsProvider
    # The output director for the hosts file <zone>.hosts
    directory: ./hosts

Support Information

Records

EtcHostsProvider supports A and AAAA, and has partial support for tracing ALIAS and CNAME records when they can be resolved within the zone.

Dynamic

EtcHostsProvider does not support dynamic records.

Developement

See the /script/ directory for some tools to help with the development process. They generally follow the Script to rule them all pattern. Most useful is ./script/bootstrap which will create a venv and install both the runtime and development related requirements. It will also hook up a pre-commit hook that covers most of what's run by CI.

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

octodns-etchosts-0.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

octodns_etchosts-0.0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file octodns-etchosts-0.0.1.tar.gz.

File metadata

  • Download URL: octodns-etchosts-0.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for octodns-etchosts-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8de4c5e88170267c758386be571b55c3bf88d4c54c0722139a39203c67e5eda2
MD5 758085020c57ea0c22b476c116386765
BLAKE2b-256 83a8c78ce54cdcd2fe476822084d3ec8d3b0669f5f71969f8566276c1869371a

See more details on using hashes here.

File details

Details for the file octodns_etchosts-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: octodns_etchosts-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for octodns_etchosts-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b5354ccf865e278c18032ba62154fea7160e0cf73c77f1cc60d575f4c5de15d7
MD5 51bf4e064d58a2c9827aa52ffef3a53a
BLAKE2b-256 76ad4145fc69fa32832c893c3968da0dd7c9a27e0c5fe75c29e9a13c1687c429

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page