Bind9 kompakt: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(→config) |
|||
| Zeile 9: | Zeile 9: | ||
=forward zone= | =forward zone= | ||
==config== | ==config== | ||
| − | + | add to named.conf.local | |
<pre> | <pre> | ||
zone "vulkan.int" { | zone "vulkan.int" { | ||
| Zeile 16: | Zeile 16: | ||
}; | }; | ||
</pre> | </pre> | ||
| + | |||
==zonefile== | ==zonefile== | ||
*/var/cache/bind/vulkan.int | */var/cache/bind/vulkan.int | ||
Version vom 18. November 2019, 20:33 Uhr
if systemd-resolved is running disable it
- systemctl disable systemd-resolved
- systemctl stop systemd-resolved
install
- apt-get install bind9
set resolv.conf
- rm /etc/resolv.conf
- echo nameserver 127.0.0.1 > /etc/resolv.conf
forward zone
config
add to named.conf.local
zone "vulkan.int" {
type master;
file "vulkan.int";
};
zonefile
- /var/cache/bind/vulkan.int
$TTL 300
@ IN SOA unaris.vulkan.int. technik.xunix.de. (
2011090204 14400 3600 3600000 86400
)
IN NS unaris.vulkan.int.
unaris IN A 192.168.25.4
restart bind
systemctl restart bind9
test
*host -t a unaris.vulkan.int 127.0.0.1
Using domain server:
Name: 127.0.0.1
Addrallow-transfer { 192.168.249.121 };ess: 127.0.0.1#53
Aliases:
unaris.vulkan.int has address 192.168.25.4
reverse zone
add to named.conf.local
zone "25.168.192.in-addr.arpa" {
type master;
file "25.168.192.in-addr.arpa";
};