Raspberrypi.dns: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 96: | Zeile 96: | ||
//include "/etc/bind/zones.rfc1918"; | //include "/etc/bind/zones.rfc1918"; | ||
== /etc/bind/db.lummerland == | |||
$TTL 2D | |||
@ IN SOA raib91.lummerland. root.lummerland. ( | |||
2016020313 ; serial | |||
2D ; refresh | |||
4H ; retry | |||
6W ; expiry | |||
1W ) ; minimum | |||
IN NS raib91.lummerland. | |||
localhost IN A 127.0.0.1 | |||
server IN A 192.168.115.1 | |||
*.server IN A 192.168.115.1 | |||
raib2 IN A 192.168.115.2 | |||
*.raib2 IN A 192.168.115.2 | |||
raib2m IN A 192.168.115.102 | |||
vpnvm IN A 192.168.115.3 | |||
hp377dw IN A 192.168.115.4 | |||
berlin IN A 192.168.115.5 | |||
netgeare2db0a IN A 192.168.115.6 | |||
netgear1F2542 IN A 192.168.115.7 | |||
wii IN A 192.168.115.8 | |||
madrid IN A 192.168.115.9 | |||
sparta IN A 192.168.115.10 | |||
lmbuero IN A 192.168.115.11 | |||
lmprivat IN A 192.168.115.12 | |||
nemo IN A 192.168.115.13 | |||
karlsruhe IN A 192.168.115.14 | |||
bruchsal IN A 192.168.115.15 | |||
webshop.khao IN A 192.168.115.16 | |||
khao IN A 192.168.115.16 | |||
*.khao IN A 192.168.115.16 | |||
mr3020 IN A 192.168.115.17 | |||
dresden IN A 192.168.115.19 | |||
power IN A 192.168.115.20 | |||
switch IN A 192.168.115.21 | |||
rtn66u IN A 192.168.115.22 | |||
*.raib23 IN A 192.168.115.23 | |||
raib23 IN A 192.168.115.23 | |||
raib23m IN A 192.168.115.123 | |||
raib24 IN A 192.168.115.24 | |||
*.raib25 IN A 192.168.115.25 | |||
raib25 IN A 192.168.115.25 | |||
WR1043N IN A 192.168.115.26 | |||
raib27 IN A 192.168.115.27 | |||
raib28 IN A 192.168.115.28 | |||
raib30 IN A 192.168.115.30 | |||
raib31 IN A 192.168.115.31 | |||
raib32 IN A 192.168.115.32 | |||
raib33 IN A 192.168.115.33 | |||
raib34 IN A 192.168.115.34 | |||
kern IN A 192.168.115.35 | |||
frankfurt IN A 192.168.115.36 | |||
meeresgrund IN A 192.168.115.37 | |||
rom IN A 192.168.115.38 | |||
*.rom IN A 192.168.115.38 | |||
pi2x00 IN A 192.168.115.39 | |||
*.pi2x00 IN A 192.168.115.39 | |||
pi2x01 IN A 192.168.115.40 | |||
*.pi2x01 IN A 192.168.115.40 | |||
pi3x03 IN A 192.168.115.41 | |||
*.pi3x03 IN A 192.168.115.41 | |||
raib42 IN A 192.168.115.42 | |||
*.raib42 IN A 192.168.115.42 | |||
pi3x04 IN A 192.168.115.43 | |||
*.pi3x04 IN A 192.168.115.43 | |||
pi3x01 IN A 192.168.115.44 | |||
pi2x02 IN A 192.168.115.45 | |||
pi3x00 IN A 192.168.115.46 | |||
eumex620a IN A 192.168.115.50 | |||
eumex620b IN A 192.168.115.51 | |||
raib73 IN A 192.168.115.73 | |||
raib86 IN A 192.168.115.86 | |||
raib90 IN A 192.168.115.90 | |||
raib91 IN A 192.168.115.91 | |||
raib92 IN A 192.168.115.92 | |||
fritzbox7490 IN A 192.168.115.95 | |||
repeater IN A 192.168.115.114 | |||
gateway IN A 192.168.115.115 | |||
router IN A 192.168.115.116 | |||
Version vom 28. September 2018, 21:52 Uhr
apt-get install bind9-doc bind9 dnsutils
/etc/resolv.conf
# Generated by resolvconf domain lummerland #nameserver 192.168.115.25 nameserver 192.168.115.46
/etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8) # Please note that this file is written to be used with dhcpcd # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d auto eth0 iface eth0 inet static address 192.168.115.46 netmask 255.255.255.0 gateway 192.168.115.115
/etc/bind/named.conf.options
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
192.168.115.115; 192.168.115.116;
};
notify no;
//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
//========================================================================
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
/etc/bind/named.conf.local
//
// Do any local configuration here
//
zone "lummerland" in {
type master;
file "/etc/bind/db.lummerland";
};
zone "115.168.192.in-addr.arpa" in {
type master;
file "/etc/bind/db.115.168.192";
};
zone "orgamon.org." {
type master;
file "/etc/bind/db.orgamon.org";
};
zone "orgamon.de." {
type master;
file "/etc/bind/db.orgamon.de";
};
zone "orgamon.net." {
type master;
file "/etc/bind/db.orgamon.net";
};
zone "orgamon.eu." {
type master;
file "/etc/bind/db.orgamon.eu";
};
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
/etc/bind/db.lummerland
$TTL 2D
@ IN SOA raib91.lummerland. root.lummerland. (
2016020313 ; serial
2D ; refresh
4H ; retry
6W ; expiry
1W ) ; minimum
IN NS raib91.lummerland.
localhost IN A 127.0.0.1
server IN A 192.168.115.1
*.server IN A 192.168.115.1
raib2 IN A 192.168.115.2
*.raib2 IN A 192.168.115.2
raib2m IN A 192.168.115.102
vpnvm IN A 192.168.115.3
hp377dw IN A 192.168.115.4
berlin IN A 192.168.115.5
netgeare2db0a IN A 192.168.115.6
netgear1F2542 IN A 192.168.115.7
wii IN A 192.168.115.8
madrid IN A 192.168.115.9
sparta IN A 192.168.115.10
lmbuero IN A 192.168.115.11
lmprivat IN A 192.168.115.12
nemo IN A 192.168.115.13
karlsruhe IN A 192.168.115.14
bruchsal IN A 192.168.115.15
webshop.khao IN A 192.168.115.16
khao IN A 192.168.115.16
*.khao IN A 192.168.115.16
mr3020 IN A 192.168.115.17
dresden IN A 192.168.115.19
power IN A 192.168.115.20
switch IN A 192.168.115.21
rtn66u IN A 192.168.115.22
*.raib23 IN A 192.168.115.23
raib23 IN A 192.168.115.23
raib23m IN A 192.168.115.123
raib24 IN A 192.168.115.24
*.raib25 IN A 192.168.115.25
raib25 IN A 192.168.115.25
WR1043N IN A 192.168.115.26
raib27 IN A 192.168.115.27
raib28 IN A 192.168.115.28
raib30 IN A 192.168.115.30
raib31 IN A 192.168.115.31
raib32 IN A 192.168.115.32
raib33 IN A 192.168.115.33
raib34 IN A 192.168.115.34
kern IN A 192.168.115.35
frankfurt IN A 192.168.115.36
meeresgrund IN A 192.168.115.37
rom IN A 192.168.115.38
*.rom IN A 192.168.115.38
pi2x00 IN A 192.168.115.39
*.pi2x00 IN A 192.168.115.39
pi2x01 IN A 192.168.115.40
*.pi2x01 IN A 192.168.115.40
pi3x03 IN A 192.168.115.41
*.pi3x03 IN A 192.168.115.41
raib42 IN A 192.168.115.42
*.raib42 IN A 192.168.115.42
pi3x04 IN A 192.168.115.43
*.pi3x04 IN A 192.168.115.43
pi3x01 IN A 192.168.115.44
pi2x02 IN A 192.168.115.45
pi3x00 IN A 192.168.115.46
eumex620a IN A 192.168.115.50
eumex620b IN A 192.168.115.51
raib73 IN A 192.168.115.73
raib86 IN A 192.168.115.86
raib90 IN A 192.168.115.90
raib91 IN A 192.168.115.91
raib92 IN A 192.168.115.92
fritzbox7490 IN A 192.168.115.95
repeater IN A 192.168.115.114
gateway IN A 192.168.115.115
router IN A 192.168.115.116
/etc/bind/db.orgamon.org
$TTL 604800
@ IN SOA localhost. root.localhost. (
5 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS localhost.
orgamon.org. IN A 192.168.115.25
*.orgamon.org. IN A 192.168.115.25
@ IN MX 10 mx.orgamon.eu.
/etc/bind/db.orgamon.de
/etc/bind/db.orgamon.eu
/etc/bind/db.orgamon.net
/etc/bind/db.orgamon.com
Rechte
chmod 644 db.* systemctl start bind9
Test
resolvconf -l
dig @pi3x00 orgamon.org