bind-Einrichtung dokumentiert
This commit is contained in:
parent
ce87a083d7
commit
22f19cb76e
14
aufgabe3.2/0.20.10.in-addr.arpa
Normal file
14
aufgabe3.2/0.20.10.in-addr.arpa
Normal file
@ -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.
|
70
aufgabe3.2/named.conf
Normal file
70
aufgabe3.2/named.conf
Normal file
@ -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; };
|
||||
};
|
4
aufgabe3.2/resolv.conf
Normal file
4
aufgabe3.2/resolv.conf
Normal file
@ -0,0 +1,4 @@
|
||||
# Generated by resolvconf
|
||||
domain zotac
|
||||
search zotac
|
||||
nameserver 127.0.0.1
|
14
aufgabe3.2/zotac.zone
Normal file
14
aufgabe3.2/zotac.zone
Normal file
@ -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
|
@ -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.
|
@ -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}:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user