]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
doc/upgrading: add network interface upgrade info
authorTomas Krizek <tomas.krizek@nic.cz>
Mon, 20 Jan 2020 13:28:24 +0000 (14:28 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 21 Jan 2020 16:20:40 +0000 (17:20 +0100)
doc/_static/css/custom.css [new file with mode: 0644]
doc/conf.py
doc/upgrading.rst

diff --git a/doc/_static/css/custom.css b/doc/_static/css/custom.css
new file mode 100644 (file)
index 0000000..3467c69
--- /dev/null
@@ -0,0 +1,5 @@
+@import "theme.css";
+
+table.docutils blockquote {
+    margin-left: 0;
+}
index bf74c1aa3c05f5269ecee3ca4ee08fc5d5812be4..f47ff8ab8c661c69f6383cba139bdffbc397ca14 100644 (file)
@@ -63,6 +63,7 @@ html_theme_options = {
     'sticky_navigation': True,
 }
 html_logo = '_static/logo-negativ.svg'
+html_style = 'css/custom.css'
 
 # -- Options for LaTeX output --------------------------------------------------
 
index e2e979ee570322fa3f1c8079d78126b298a0e535..7c8529864fd1bc6cfd56119d0d8e89642873994c 100644 (file)
@@ -30,6 +30,39 @@ Users
 Configuration file
 ------------------
 
+* Network interface are now configured in ``kresd.conf`` with
+  :func:`net.listen` instead of systemd sockets (`#485
+  <https://gitlab.labs.nic.cz/knot/knot-resolver/issues/485>`_). See
+  the following examples.
+
+  .. tip:: For Debian, Ubuntu, CentOS and Fedora users, the configuration file
+     is upgraded automatically and only needs to be verified for corectness.
+
+  .. csv-table::
+     :header: "4.x - systemd socket file", "5.x - kresd.conf"
+
+      "kresd.socket
+      | [Socket]
+      | ListenDatagram=127.0.0.1:53
+      | ListenStream=127.0.0.1:53","| net.listen('127.0.0.1', 53, { kind = 'dns' })"
+      "kresd.socket
+      | [Socket]
+      | FreeBind=true
+      | BindIPv6Only=both
+      | ListenDatagram=[::1]:53
+      | ListenStream=[::1]:53
+      "," | net.listen('127.0.0.1', 53, { kind = 'dns', freebind = true })
+      | net.listen('::1', 53, { kind = 'dns', freebind = true })"
+      "kresd-tls.socket
+      | [Socket]
+      | ListenStream=127.0.0.1:853","| net.listen('127.0.0.1', 853, { kind = 'tls' })"
+      "kresd-doh.socket
+      | [Socket]
+      | ListenStream=127.0.0.1:443","| net.listen('127.0.0.1', 443, { kind = 'doh' })"
+      "kresd-webmgmt.socket
+      | [Socket]
+      | ListenStream=127.0.0.1:8453","| net.listen('127.0.0.1', 8453, { kind = 'webmgmt' })"
+
 * :func:`net.listen` throws an error if it fails to bind. Use ``freebind=true`` option
   to bind to nonlocal addresses.