sslip.io has TXT records for protonmail

This commit is contained in:
Brian Cunnie
2018-09-12 13:48:00 -07:00
parent a0f1136286
commit ec894473ce

View File

@@ -27,7 +27,7 @@ pdns_pipe: |
# Configuration
#
# Increment this timestamp when the contents of the file change.
XIP_TIMESTAMP="2018030100"
XIP_TIMESTAMP="2018091200"
# The top-level domain for which the name server is authoritative.
# CHANGEME: change "sslip.io" to your domain
@@ -63,6 +63,12 @@ pdns_pipe: |
# )
XIP_MX_RECORDS=( )
# These are the TXT records for your domain. IF YOU'RE NOT SURE,
# don't set it at at all (comment it out)--it defaults to no
XIP_TXT_RECORDS=(
"protonmail-verification=ce0ca3f5010aa7a2cf8bcc693778338ffde73e26"
)
if [ -a "$1" ]; then
source "$1"
fi
@@ -197,6 +203,13 @@ pdns_pipe: |
done
}
answer_txt_query() {
local address
for text in "${XIP_TXT_RECORDS[@]}"; do
send_answer "TXT" "$text"
done
}
answer_subdomain_a_query_for() {
local type="$1"
local address="$(resolve_${type}_subdomain)"
@@ -230,6 +243,9 @@ pdns_pipe: |
if qtype_is "NS"; then
answer_ns_query
fi
if qtype_is "TXT"; then
answer_txt_query
fi
if qtype_is "MX"; then
answer_mx_query
fi