From 22f19cb76e087d95f54663e53cb44df38e8d9a8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 18 Nov 2013 16:59:07 +0100 Subject: [PATCH] bind-Einrichtung dokumentiert --- aufgabe3.2/0.20.10.in-addr.arpa | 14 ++++++ aufgabe3.2/named.conf | 70 +++++++++++++++++++++++++++ aufgabe3.2/resolv.conf | 4 ++ aufgabe3.2/zotac.zone | 14 ++++++ bericht/abschnitte/sv-dhcp_dns.tex | 10 ++++ bericht/abschnitte/sv-filesystems.tex | 4 +- 6 files changed, 115 insertions(+), 1 deletion(-) create mode 100644 aufgabe3.2/0.20.10.in-addr.arpa create mode 100644 aufgabe3.2/named.conf create mode 100644 aufgabe3.2/resolv.conf create mode 100644 aufgabe3.2/zotac.zone diff --git a/aufgabe3.2/0.20.10.in-addr.arpa b/aufgabe3.2/0.20.10.in-addr.arpa new file mode 100644 index 0000000..46e0503 --- /dev/null +++ b/aufgabe3.2/0.20.10.in-addr.arpa @@ -0,0 +1,14 @@ +@ IN SOA zotac0.zotac. hostmaster ( + 307 ; serial + 1H ; refresh + 4H ; retry + 3W ; expire + 1D ) ; minimum + NS zotac0.zotac. +0.20.10.in-addr.arpa. IN NS zotac0.zotac. + +1 PTR zotac0.zotac. +101 PTR zotac1.zotac. +102 PTR zotac2.zotac. +103 PTR zotac3.zotac. +104 PTR zotac4.zotac. diff --git a/aufgabe3.2/named.conf b/aufgabe3.2/named.conf new file mode 100644 index 0000000..cbc405a --- /dev/null +++ b/aufgabe3.2/named.conf @@ -0,0 +1,70 @@ +// +// /etc/named.conf +// + +acl "trusted" { + 10.20.0.0/24; + localhost; + localnets; +}; + +options { + directory "/var/named"; + pid-file "/run/named/named.pid"; + auth-nxdomain yes; + datasize default; + // Uncomment these to enable IPv6 connections support + // IPv4 will still work: + listen-on-v6 { any; }; + + // Default security settings. + allow-recursion { trusted; }; + allow-query { trusted; }; + forwarders { 8.8.8.8; 8.8.4.4; }; + allow-transfer { none; }; + allow-update { none; }; + version none; + hostname none; + server-id none; +}; + +zone "localhost" IN { + type master; + file "localhost.zone"; + allow-transfer { any; }; +}; + +zone "0.0.127.in-addr.arpa" IN { + type master; + file "127.0.0.zone"; + allow-transfer { any; }; +}; + +zone "0.20.10.in-addr.arpa" IN { + type master; + file "0.20.10.in-addr.arpa"; + allow-update { none; }; +}; + +zone "zotac" IN { + type master; + file "zotac.zone"; +}; + +zone "." IN { + type hint; + file "root.hint"; +}; + +logging { + channel xfer-log { + file "/var/log/named.log"; + print-category yes; + print-severity yes; + print-time yes; + severity info; + }; + category xfer-in { xfer-log; }; + category xfer-out { xfer-log; }; + category notify { xfer-log; }; +}; diff --git a/aufgabe3.2/resolv.conf b/aufgabe3.2/resolv.conf new file mode 100644 index 0000000..4320bfb --- /dev/null +++ b/aufgabe3.2/resolv.conf @@ -0,0 +1,4 @@ +# Generated by resolvconf +domain zotac +search zotac +nameserver 127.0.0.1 diff --git a/aufgabe3.2/zotac.zone b/aufgabe3.2/zotac.zone new file mode 100644 index 0000000..5bee5ac --- /dev/null +++ b/aufgabe3.2/zotac.zone @@ -0,0 +1,14 @@ +@ IN SOA zotac0 hostmaster ( + 304 ; serial + 1H ; refresh + 4H ; retry + 3W ; expire + 1D ) ; minimum + NS zotac0 + +localhost A 127.0.0.1 +zotac0 A 10.20.0.1 +zotac1 A 10.20.0.101 +zotac2 A 10.20.0.102 +zotac3 A 10.20.0.103 +zotac4 A 10.20.0.104 diff --git a/bericht/abschnitte/sv-dhcp_dns.tex b/bericht/abschnitte/sv-dhcp_dns.tex index e69de29..eab5dbf 100644 --- a/bericht/abschnitte/sv-dhcp_dns.tex +++ b/bericht/abschnitte/sv-dhcp_dns.tex @@ -0,0 +1,10 @@ +\subsubsection{DNS} +\label{ssub:dns} + +Als DNS-Server haben wir {\tt Bind} installiert und eingerichtet. +Die Konfiguration ist in {\tt aufgabe3.2/named.conf} zu finden. +Für das Auflösen der Hostnames haben wir die Domaine zotac {\tt aufgabe3.2/zotac.zone} angelegt und +ein Zonefile für die Reverse-DNS-Auflösung {\tt aufgabe3.2}. +Schließlich musste noch die /etc/resolv.conf angepasst werden, so dass der eingerichtete Server +auch von der Head-Node zur Adress-Auflösung benutzt wird ({\tt aufgabe3.2/resolv.conf}). +Die Nodes bekommen die DNS-Einstellungen per dhcp. diff --git a/bericht/abschnitte/sv-filesystems.tex b/bericht/abschnitte/sv-filesystems.tex index ad2f16f..ee3f9dc 100644 --- a/bericht/abschnitte/sv-filesystems.tex +++ b/bericht/abschnitte/sv-filesystems.tex @@ -45,7 +45,9 @@ legten wir das Dateisystem an: Letztendlich mounten wir das GlusterFS mit folgenden Eintrag in der {\tt aufgabe3.3/fstab}: -\shellcmd{zotac0:/gv0 /fastfs glusterfs defaults 0 0} +\begin{center} +{\tt zotac0:/gv0 /fastfs glusterfs defaults 0 0} +\end{center} Um die Schreibrate zu ermitteln, verwendeten wir den Befehl {\tt dd}: