mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-07 16:41:19 +08:00
sslip.io has TXT records for protonmail
This commit is contained in:
@@ -27,7 +27,7 @@ pdns_pipe: |
|
|||||||
# Configuration
|
# Configuration
|
||||||
#
|
#
|
||||||
# Increment this timestamp when the contents of the file change.
|
# 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.
|
# The top-level domain for which the name server is authoritative.
|
||||||
# CHANGEME: change "sslip.io" to your domain
|
# CHANGEME: change "sslip.io" to your domain
|
||||||
@@ -63,6 +63,12 @@ pdns_pipe: |
|
|||||||
# )
|
# )
|
||||||
XIP_MX_RECORDS=( )
|
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
|
if [ -a "$1" ]; then
|
||||||
source "$1"
|
source "$1"
|
||||||
fi
|
fi
|
||||||
@@ -197,6 +203,13 @@ pdns_pipe: |
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
answer_txt_query() {
|
||||||
|
local address
|
||||||
|
for text in "${XIP_TXT_RECORDS[@]}"; do
|
||||||
|
send_answer "TXT" "$text"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
answer_subdomain_a_query_for() {
|
answer_subdomain_a_query_for() {
|
||||||
local type="$1"
|
local type="$1"
|
||||||
local address="$(resolve_${type}_subdomain)"
|
local address="$(resolve_${type}_subdomain)"
|
||||||
@@ -230,6 +243,9 @@ pdns_pipe: |
|
|||||||
if qtype_is "NS"; then
|
if qtype_is "NS"; then
|
||||||
answer_ns_query
|
answer_ns_query
|
||||||
fi
|
fi
|
||||||
|
if qtype_is "TXT"; then
|
||||||
|
answer_txt_query
|
||||||
|
fi
|
||||||
if qtype_is "MX"; then
|
if qtype_is "MX"; then
|
||||||
answer_mx_query
|
answer_mx_query
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user