summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eraya@a21an.org>2022-01-29 19:58:11 +0300
committerSam James <sam@gentoo.org>2024-08-31 08:10:12 +0100
commit261167b216cb2970b23e16aee3d0a76476d1adca (patch)
tree4d60766e82141e536788b490a91b453fd4101a2e /net-dns
parentnet-dns/bind: bump to 9.18.0 (diff)
downloadgentoo-261167b216cb2970b23e16aee3d0a76476d1adca.tar.gz
gentoo-261167b216cb2970b23e16aee3d0a76476d1adca.tar.bz2
gentoo-261167b216cb2970b23e16aee3d0a76476d1adca.zip
net-dns/bind: add dot and doh examples to config file
Bug: https://bugs.gentoo.org/832218 Bug: https://bugs.gentoo.org/930348 Bug: https://bugs.gentoo.org/936568 Bug: https://bugs.gentoo.org/937907 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Eray Aslan <eras@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/bind/files/named.conf-r942
1 files changed, 27 insertions, 15 deletions
diff --git a/net-dns/bind/files/named.conf-r9 b/net-dns/bind/files/named.conf-r9
index e14996561731..1c805529c855 100644
--- a/net-dns/bind/files/named.conf-r9
+++ b/net-dns/bind/files/named.conf-r9
@@ -1,21 +1,33 @@
+//http local {
+// endpoints { "/dns-query"; };
+//};
+
options {
- directory "/var/cache/bind";
+ directory "/var/cache/bind";
pid-file "/run/named/named.pid";
- listen-on { 127.0.0.1; };
- listen-on-v6 { ::1; };
- allow-recursion {
- none;
- };
- allow-transfer {
- none;
- };
- allow-update {
- none;
- };
+
+ listen-on { 127.0.0.1; };
+ listen-on-v6 { ::1; };
+ // dns-over-tls
+ listen-on port 853 tls ephemeral { 127.0.0.1; };
+ listen-on-v6 port 853 tls ephemeral { ::1; };
+ // dns-over-https
+ //listen-on port 443 tls ephemeral http local { 127.0.0.1; };
+ //listen-on-v6 port 443 tls ephemeral http local { ::1; };
+
+ allow-recursion {
+ none;
+ };
+ allow-transfer {
+ none;
+ };
+ allow-update {
+ none;
+ };
};
zone "example.com." {
- type primary;
- file "/var/lib/bind/db.example.com";
- notify explicit;
+ type primary;
+ file "/var/bind/pri/db.example.com";
+ notify explicit;
};