Skip to content

Commit edd06bc

Browse files
committed
add support for HTTPS RR
1 parent f1f16b0 commit edd06bc

5 files changed

Lines changed: 17 additions & 4 deletions

File tree

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Version 0.4.1
2+
3+
* Add support for HTTPS RR
4+
15
Version 0.4
26

37
* Ported to Python 3.6+

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
_ _ __
2-
| | version 0.4 | | / _|
2+
| | version 0.4.1| | / _|
33
__| |_ __ ___ ___| |__ ___| |_
44
/ _` | '_ \/ __|/ __| '_ \ / _ \ _|
55
| (_| | | | \__ \ (__| | | | __/ |

dnschef.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,8 @@
3737

3838
[RRSIG]
3939
; FORMAT: covered algorithm labels labels orig_ttl sig_exp sig_inc key_tag name base64(sig)
40-
*.thesprawl.org=A 5 3 86400 20030322173103 20030220173103 2642 thesprawl.org. oJB1W6WNGv+ldvQ3WDG0MQkg5IEhjRip8WTrPYGv07h108dUKGMeDPKijVCHX3DDKdfb+v6oB9wfuh3DTJXUAfI/M0zmO/zz8bW0Rznl8O3tGNazPwQKkRN20XPXV6nwwfoXmJQbsLNrLfkGJ5D6fwFm8nN+6pBzeDQfsS3Ap3o=
40+
*.thesprawl.org=A 5 3 86400 20030322173103 20030220173103 2642 thesprawl.org. oJB1W6WNGv+ldvQ3WDG0MQkg5IEhjRip8WTrPYGv07h108dUKGMeDPKijVCHX3DDKdfb+v6oB9wfuh3DTJXUAfI/M0zmO/zz8bW0Rznl8O3tGNazPwQKkRN20XPXV6nwwfoXmJQbsLNrLfkGJ5D6fwFm8nN+6pBzeDQfsS3Ap3o=
41+
42+
[HTTPS]
43+
;format: priority target key=value pairs
44+
*.thesprawl.org=1 . alpn=h2 ipv4hint=127.0.0.1 ipv6hint=::1

dnschef.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# for the latest version and documentation. Please forward all issues and
77
# concerns to iphelix [at] thesprawl.org.
88

9-
DNSCHEF_VERSION = "0.4"
9+
DNSCHEF_VERSION = "0.4.1"
1010

1111
# Copyright (C) 2019 Peter Kacherginsky, Marcello Salvati
1212
# All rights reserved.
@@ -183,6 +183,11 @@ def parse(self, data):
183183

184184
response.add_answer(RR(qname, getattr(QTYPE,qtype), rdata=RDMAP[qtype](covered, algorithm, labels,orig_ttl, sig_exp, sig_inc, key_tag, name, sig) ))
185185

186+
elif qtype == "HTTPS":
187+
kv_pairs = fake_record.split(" ")
188+
mydata = RDMAP[qtype].fromZone(kv_pairs)
189+
response.add_answer(RR(qname, getattr(QTYPE,qtype), rdata=mydata))
190+
186191
else:
187192
# dnslib doesn't like trailing dots
188193
if fake_record[-1] == ".": fake_record = fake_record[:-1]

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
-i https://pypi.org/simple
2-
dnslib==0.9.10
2+
dnslib==0.9.23

0 commit comments

Comments
 (0)