Bind Konfiguration (Linux): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 17: | Zeile 17: | ||
<pre> | <pre> | ||
sudo nano /etc/bind/db.<domain> | sudo nano /etc/bind/db.<domain> | ||
</pre> | |||
<pre> | |||
;; db.<domain> | |||
;; Forwardlookupzone für <domain> | |||
;; | |||
$TTL 2D | |||
@ IN SOA server1.<domain>. admin.<domain>. ( | |||
2016062701 ; Serial | |||
8H ; Refresh | |||
2H ; Retry | |||
4W ; Expire | |||
3H ) ; NX (TTL Negativ Cache) | |||
@ IN NS server1.kirner.or.at. | |||
IN MX 10 mail.kirner.or.at. | |||
IN A 10.0.0.100 | |||
server1 IN A 10.0.0.100 | |||
server2 IN A 10.0.0.120 | |||
localhost IN A 127.0.0.1 | |||
test IN CNAME server2 | |||
</pre> | </pre> | ||
Version vom 27. Juni 2016, 22:07 Uhr
Noch in Bearbeitung
Installation
sudo apt-get install bind9
Konfiguration
Server erst mal stoppen:
sudo /etc/init.d/bind9 stop
Datei für den Forward-Lookup anlegen:
sudo nano /etc/bind/db.<domain>
;; db.<domain> ;; Forwardlookupzone für <domain> ;; $TTL 2D @ IN SOA server1.<domain>. admin.<domain>. ( 2016062701 ; Serial 8H ; Refresh 2H ; Retry 4W ; Expire 3H ) ; NX (TTL Negativ Cache) @ IN NS server1.kirner.or.at. IN MX 10 mail.kirner.or.at. IN A 10.0.0.100 server1 IN A 10.0.0.100 server2 IN A 10.0.0.120 localhost IN A 127.0.0.1 test IN CNAME server2
Datei für den Reverse-Lookup anlegen:
sudo nano /etc/bind/db.0.0.10
sudo nano /etc/bind/named.conf.local
zone <domain>" { type master; file "/etc/bind/db.<domain>"; }; zone "0.0.10.in-addr.arpa" { type master; file "/etc/bind/db.0.0.10"; };
sudo /etc/init.d/bind9 start
Testen
Forward Lookup
dig @127.0.0.1 <name>.<domain>
Reverse Lookup
dig @127.0.0.1 -x <ip address>
Probleme
https://forum.ubuntuusers.de/topic/keine-dns-aufloesung-mit-ovpn-und-bind/
https://www.heinlein-support.de/blog/security/ddos-attacke-durch-recursive-dns-queries/
Links
https://wiki.ubuntuusers.de/DNS-Server_Bind/
Zurück zu Ubuntu