ubuntuusers.de

nsupdate

Autor:
ostcar
Datum:
26. Mai 2015 17:52
Code:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
$ cat /etc/bind/named.conf
acl internals { 127.0.0.0/8; ::1; };


options {
	directory "/var/cache/bind";

	dnssec-validation auto;

	auth-nxdomain no;    # conform to RFC1035
	listen-on-v6 { any; };
	listen-on { none; };

	allow-transfer {"none";};
	allow-recursion { localhost; ::1; };
};


include "/etc/bind/rndc.key";

controls {
	inet 127.0.0.1 port 953 allow { 127.0.0.1; };
};

include "/etc/bind/zones.conf";
$ cat /etc/bind/zones.conf 
zone "oshahn.de" {
	type master;
	file "/var/lib/bind/oshahn.de.db";
	allow-update { key rndc.key; };
};



// prime the server with knowledge of the root servers
zone "." {
	type hint;
	file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
	type master;
	file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
	type master;
	file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
	type master;
	file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
	type master;
	file "/etc/bind/db.255";
};
$ sudo cat /etc/bind/rndc.key 
key "oshahn-de_rndc-key" {
	algorithm hmac-md5;
	secret "DasGlaubstDuDochSelbstNicht";
};
$ cat /var/lib/bind/oshahn.de.db 
$TTL    3600
@       IN      SOA     oshahn.de. mail.oshahn.de. (
                   2007010401           ; Serial
                         3600           ; Refresh [1h]
                          600           ; Retry   [10m]
                        86400           ; Expire  [1d]
                          600 )         ; Negative Cache TTL [1h]
;
@       IN      NS      oshahn.de.
@       IN      MX      10 mail.oshahn.de.

oshahn.de.     IN      A       83.246.72.216