From 18955dc7a3f527d519b3f86d6f060c9155a655c5 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 25 Aug 2019 12:42:26 +0200 Subject: [PATCH] dns,code,network --- in/index.rst | 3 ++- in/public/code.rst | 8 ++++++++ in/public/dns/hostname.rst | 10 ++++++++++ in/public/dns/hosts.rst | 15 +++++++++++++++ in/public/dns/index.rst | 9 +++++++++ in/public/dns/resolv.rst | 19 +++++++++++++++++++ in/public/network/hosts/index.rst | 12 ------------ in/public/network/index.rst | 7 ------- in/tasks.rst | 11 ----------- 9 files changed, 63 insertions(+), 31 deletions(-) create mode 100644 in/public/code.rst create mode 100644 in/public/dns/hostname.rst create mode 100644 in/public/dns/hosts.rst create mode 100644 in/public/dns/index.rst create mode 100644 in/public/dns/resolv.rst delete mode 100644 in/public/network/hosts/index.rst delete mode 100644 in/public/network/index.rst diff --git a/in/index.rst b/in/index.rst index 4b0afd4..f17c1d8 100644 --- a/in/index.rst +++ b/in/index.rst @@ -12,6 +12,7 @@ RTFD public/curl/index public/dd/index public/debian/index + public/dns/index public/docker/index public/ffmpeg/index public/firefox/index @@ -52,7 +53,7 @@ RTFD :caption: Categories :maxdepth: 2 - public/network/index + public/code .. toctree:: :caption: Personal diff --git a/in/public/code.rst b/in/public/code.rst new file mode 100644 index 0000000..0c674c3 --- /dev/null +++ b/in/public/code.rst @@ -0,0 +1,8 @@ +code +==== + +.. toctree:: + + bash/index + c/index + python3/index diff --git a/in/public/dns/hostname.rst b/in/public/dns/hostname.rst new file mode 100644 index 0000000..fca8f19 --- /dev/null +++ b/in/public/dns/hostname.rst @@ -0,0 +1,10 @@ +hostname +======== + +.. todo:: command + +* /etc/hostname + +:: + + name diff --git a/in/public/dns/hosts.rst b/in/public/dns/hosts.rst new file mode 100644 index 0000000..7ff719f --- /dev/null +++ b/in/public/dns/hosts.rst @@ -0,0 +1,15 @@ +hosts +===== + +* /etc/hosts + +localhost +--------- + +.. warning:: include hostname or sudo complains + +:: + + 127.0.0.1 localhost + + ::1 localhost diff --git a/in/public/dns/index.rst b/in/public/dns/index.rst new file mode 100644 index 0000000..03ac823 --- /dev/null +++ b/in/public/dns/index.rst @@ -0,0 +1,9 @@ +dns +=== + +.. toctree:: + :maxdepth: 2 + + hostname + hosts + resolv diff --git a/in/public/dns/resolv.rst b/in/public/dns/resolv.rst new file mode 100644 index 0000000..9819a07 --- /dev/null +++ b/in/public/dns/resolv.rst @@ -0,0 +1,19 @@ +resolv +====== + +* /etc/resolv.conf + +cloudflare +---------- + +:: + + nameserver 1.1.1.1 + +google +------ + +:: + + nameserver 8.8.8.8 + nameserver 8.8.4.4 diff --git a/in/public/network/hosts/index.rst b/in/public/network/hosts/index.rst deleted file mode 100644 index 19864d6..0000000 --- a/in/public/network/hosts/index.rst +++ /dev/null @@ -1,12 +0,0 @@ -***** -Hosts -***** - -LocalHost -========= - -:: - - ::1 localhost - - 127.0.0.1 localhost diff --git a/in/public/network/index.rst b/in/public/network/index.rst deleted file mode 100644 index 9387b35..0000000 --- a/in/public/network/index.rst +++ /dev/null @@ -1,7 +0,0 @@ -Network -======= - -.. toctree:: - :maxdepth: 2 - - hosts/index diff --git a/in/tasks.rst b/in/tasks.rst index 3aed0c7..cc067a0 100644 --- a/in/tasks.rst +++ b/in/tasks.rst @@ -136,14 +136,3 @@ Tasks * on-the-fly LibreOffice documents conversion * send emails as own domain name's alias * personal GPG key signature - -Name resolution ---------------- - -* /etc/hosts - -:: - - 127.0.0.1 localhost - - ::1 localhost