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_etchosts

Configuration

providers:
  etchosts:
    class: octodns_etchosts.EtcHostsProvider
    # The output directory for the hosts file <zone>.hosts
    directory: ./hosts
    # Remove trailing dots of zone names (e.g. example.com. => example.com) (optional)
    # Avoids problems with certain DNS providers, as the host file format requires an alphanumeric character to be the final character in a hostname.
    # Default: True
    #remove_trailing_dots: True

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.

Development

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-1.1.0.tar.gz (7.5 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-1.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file octodns_etchosts-1.1.0.tar.gz.

File metadata

  • Download URL: octodns_etchosts-1.1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for octodns_etchosts-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6522f1abeb20e69ba8dfed716ff0e1e63b957f6dc7d584d16bc83e411560bf9d
MD5 ea3c87bcba3722fdaa223fa4d792b092
BLAKE2b-256 f9e8c2bed17cc6980f500880b731ea0c76921d48c2515c1c44498d96af410f01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for octodns_etchosts-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0252cccbee35a449d21fa283b47518d5888146d357c966918b11c567a8fbeb37
MD5 f01f2ba83b9fb1bfa6688f8ada51f9a7
BLAKE2b-256 c24e7c9756279a3493ac886bac811ca0411e1bb70a77aec4d78fac00e54d26f1

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