Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
debian:other-debian:router-debian [2017/05/17 17:07] – [Konfiguration DNS-Server für LAN Netz] michael | debian:other-debian:router-debian [2017/05/17 17:15] (current) – [Konfiguration DHCP-Server für LAN Netz] michael | ||
---|---|---|---|
Line 61: | Line 61: | ||
===== Konfiguration DNS-Server für LAN Netz ===== | ===== Konfiguration DNS-Server für LAN Netz ===== | ||
+ | |||
+ | <file bash / | ||
+ | # LAN-PARTY-NETWORK | ||
+ | zone " | ||
+ | type master; | ||
+ | file "/ | ||
+ | |||
+ | zone " | ||
+ | type master; | ||
+ | file "/ | ||
+ | </ | ||
<file bash / | <file bash / | ||
Line 67: | Line 78: | ||
ns.party.lan. | ns.party.lan. | ||
admin.party.lan. | admin.party.lan. | ||
- | 2017022001 | + | 2017022001 |
604800 | 604800 | ||
- | 86400 | + | 86400 |
2419200 | 2419200 | ||
- | 604800 ) ; Negative Cache TTL | + | 604800 ) ; Negative Cache TTL |
; name servers – NS und A records | ; name servers – NS und A records | ||
Line 87: | Line 98: | ||
ns.party.lan. | ns.party.lan. | ||
admin.party.lan. | admin.party.lan. | ||
- | 2017022001 | + | 2017022001 |
604800 | 604800 | ||
- | 86400 | + | 86400 |
2419200 | 2419200 | ||
- | 604800 ) ; Negative Cache TTL | + | 604800 ) ; Negative Cache TTL |
; name servers – NS record | ; name servers – NS record | ||
Line 100: | Line 111: | ||
1 | 1 | ||
</ | </ | ||
+ | |||
+ | <file bash / | ||
+ | # Konfigurationsfile / | ||
+ | # Definieren der Optionen unseres Bind-Servers. | ||
+ | |||
+ | options { | ||
+ | directory "/ | ||
+ | |||
+ | recursion yes; # enables recursion queries | ||
+ | allow-transfer { none; }; # disable zone transfers | ||
+ | allow-query { | ||
+ | 192.168.0.0/ | ||
+ | 172.168.0.0/ | ||
+ | 127.0.0.0/ | ||
+ | }; | ||
+ | |||
+ | forwarders { | ||
+ | 8.8.8.8; | ||
+ | 8.8.4.4; | ||
+ | }; | ||
+ | |||
+ | auth-nxdomain no; # conform to RFC1035 | ||
+ | # | ||
+ | }; | ||
+ | </ | ||
+ | |||
===== Konfiguration DHCP-Server für LAN Netz ===== | ===== Konfiguration DHCP-Server für LAN Netz ===== | ||
+ | <file bash / | ||
+ | # DHCP Konfiguration – party.lan | ||
+ | |||
+ | ddns-update-style none; | ||
+ | default-lease-time 600; | ||
+ | max-lease-time 7200; | ||
+ | authoritative; | ||
+ | log-facility local7; | ||
+ | |||
+ | subnet | ||
+ | |||
+ | range 172.168.1.100 172.168.1.130; | ||
+ | interface eth1; | ||
+ | option subnet-mask 255.255.255.0; | ||
+ | option broadcast-address 192.168.210.255; | ||
+ | option routers 172.168.1.1; | ||
+ | option domain-name-servers 172.168.1.1; | ||
+ | option domain-name " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | systemctl start isc-dhcp-server | ||
+ | systemctl enable isc-dhcp-server | ||
+ | |||
+ | systemctl status isc-dhcp-server | ||
+ | </ | ||
https:// | https:// |