You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In reality this provider manages matching A/AAAA/CNAME records with Pi-hole's
Local DNS Records. It will manage host and CNAME entries that match
domain names under management by OctoDNS. Other existing Pi-hole entries are
untouched.
TTL values are unsupported on host records and currently ignored for CNAMEs
records.
Installation
Command line
pip install octodns-pihole
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-pihole==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-pihole.git@ec9661f8b335241ae4746eea467a8509205e6a30#egg=octodns_pihole
Configuration
providers:
pihole:
class: octodns_pihole.PiholeProviderurl: https://pihole.lan:443password: env/PIHOLE_PASSWORDtotp: env/PIHOLE_TOTP # optional - required when 2FA is enabledtls_verify: false # optional - default truestrict_supports: false # ignore unsupported records
Support Information
Records
Pi-Hole supports A, AAAA, and CNAME. PTR records will automatically exist for
A and AAAA records.
Dynamic
PiholeProvider 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.
There is a docker-compose.yml file included in the repo
that will set up a Pi-hole server with the API enabled for use in development.
The admin password/api-key for it is correct horse battery staple.