-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6382f0
commit e2950ae
Showing
18 changed files
with
1,079 additions
and
645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "tdns/ext/simplesocket"] | ||
path = tdns/ext/simplesocket | ||
url = https://github.com/ahupowerdns/simplesocket.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
basic.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
<meta charset="utf-8" emacsmode="-*- markdown -*-"> | ||
**A warm welcome to DNS** | ||
Note: this page is part of the | ||
'[hello-dns](https://powerdns.org/hello-dns/)' documentation effort. | ||
|
||
# DNSSEC | ||
For now, see [this page](https://ds9a.nl/dnssec/). | ||
|
||
<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="ext/markdeep.min.js"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<meta charset="utf-8" emacsmode="-*- markdown -*-"> | ||
**A warm welcome to DNS** | ||
|
||
<link rel="stylesheet" href="https://casual-effects.com/markdeep/latest/apidoc.css?"> | ||
|
||
Note: this page is part of the | ||
'[hello-dns](https://powerdns.org/hello-dns/)' documentation effort. | ||
|
||
# Non-IETF DNS standards | ||
|
||
* RPZ | ||
* RRL | ||
* DNSCrypt | ||
* Curvedns | ||
|
||
<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="ext/markdeep.min.js"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
non-ietf.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<meta charset="utf-8" emacsmode="-*- markdown -*-"> | ||
**A warm welcome to DNS** | ||
|
||
<link rel="stylesheet" href="https://casual-effects.com/markdeep/latest/apidoc.css?"> | ||
|
||
Note: this page is part of the | ||
'[hello-dns](https://powerdns.org/hello-dns/)' documentation effort. | ||
|
||
# Privacy | ||
TBC | ||
|
||
* DNS over TLS | ||
* DNS over HTTPS | ||
* Query name minimization | ||
|
||
<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="ext/markdeep.min.js"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
privacy.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<meta charset="utf-8" emacsmode="-*- markdown -*-"> | ||
**A warm welcome to DNS** | ||
|
||
<link rel="stylesheet" href="https://casual-effects.com/markdeep/latest/apidoc.css?"> | ||
|
||
Note: this page is part of the | ||
'[hello-dns](https://powerdns.org/hello-dns/)' documentation effort. | ||
|
||
# Rare | ||
DNS is currently described in over 150 RFCs. Not all of these are | ||
operational, and it is uncertain if all of them should be. | ||
|
||
This page is a menu of things that are specified, but not in wide | ||
production. | ||
|
||
Standards listed here could be omitted from 2018 implementations | ||
without causing operational problems, but this may change in the future. | ||
|
||
Applicable to authoritative servers: | ||
|
||
* TKEY | ||
* SIG(0) | ||
|
||
<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="ext/markdeep.min.js"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rare.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
CXXFLAGS:=-std=gnu++14 -Wall -O2 -MMD -MP -ggdb -Iext/simplesocket | ||
|
||
PROGRAMS = tdns | ||
|
||
all: $(PROGRAMS) | ||
|
||
clean: | ||
rm -f *~ *.o *.d test $(PROGRAMS) | ||
|
||
#check: mtests | ||
# ./mtests | ||
|
||
-include *.d | ||
|
||
tdns: tdns.o ext/simplesocket/comboaddress.o ext/simplesocket/sclasses.o ext/simplesocket/swrappers.o | ||
g++ -std=gnu++14 $^ -o $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#pragma once | ||
struct dnsheader { | ||
unsigned id :16; /* query identification number */ | ||
#if BYTE_ORDER == BIG_ENDIAN | ||
/* fields in third byte */ | ||
unsigned qr: 1; /* response flag */ | ||
unsigned opcode: 4; /* purpose of message */ | ||
unsigned aa: 1; /* authoritative answer */ | ||
unsigned tc: 1; /* truncated message */ | ||
unsigned rd: 1; /* recursion desired */ | ||
/* fields in fourth byte */ | ||
unsigned ra: 1; /* recursion available */ | ||
unsigned unused :1; /* unused bits (MBZ as of 4.9.3a3) */ | ||
unsigned ad: 1; /* authentic data from named */ | ||
unsigned cd: 1; /* checking disabled by resolver */ | ||
unsigned rcode :4; /* response code */ | ||
#elif BYTE_ORDER == LITTLE_ENDIAN || BYTE_ORDER == PDP_ENDIAN | ||
/* fields in third byte */ | ||
unsigned rd :1; /* recursion desired */ | ||
unsigned tc :1; /* truncated message */ | ||
unsigned aa :1; /* authoritative answer */ | ||
unsigned opcode :4; /* purpose of message */ | ||
unsigned qr :1; /* response flag */ | ||
/* fields in fourth byte */ | ||
unsigned rcode :4; /* response code */ | ||
unsigned cd: 1; /* checking disabled by resolver */ | ||
unsigned ad: 1; /* authentic data from named */ | ||
unsigned unused :1; /* unused bits (MBZ as of 4.9.3a3) */ | ||
unsigned ra :1; /* recursion available */ | ||
#endif | ||
/* remaining bytes */ | ||
unsigned qdcount :16; /* number of question entries */ | ||
unsigned ancount :16; /* number of answer entries */ | ||
unsigned nscount :16; /* number of authority entries */ | ||
unsigned arcount :16; /* number of resource entries */ | ||
}; | ||
|
||
static_assert(sizeof(dnsheader) == 12, "dnsheader size must be 12"); |
Submodule simplesocket
added at
9829ce
Oops, something went wrong.