Skip to content

Instantly share code, notes, and snippets.

@wido
Created February 13, 2020 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wido/177ac582cec89bd5f63478a747f3e26b to your computer and use it in GitHub Desktop.
Save wido/177ac582cec89bd5f63478a747f3e26b to your computer and use it in GitHub Desktop.
PowerDNS Lua records
# These are just some LUA records I was testing with for PowerDNS
#
# Author: Wido den Hollander <wido@denhollander.io>
A "ifportup(25, {'185.66.250.201', '185.87.186.222'})"
A "ifportup(25, {'185.66.250.201', '185.87.186.222'}, {selector='all'})"
AAAA "ifportup(25, {'2a00:f10:121:a00:4f8:84ff:fe00:1846', '2a00:f10:400:2:488:56ff:fe00:74f'})"
AAAA "ifportup(25, {'2a00:f10:121:a00:4f8:84ff:fe00:1846', '2a00:f10:400:2:488:56ff:fe00:74f'}, {selector='all'})"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment