Bind9 kompakt: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 2: Zeile 2:
 
*systemctl disable  systemd-resolved
 
*systemctl disable  systemd-resolved
 
*systemctl stop 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=
 
=forward zone=
 
==config==
 
==config==
Zeile 21: Zeile 26:
 
unaris        IN A      192.168.25.4
 
unaris        IN A      192.168.25.4
 
</pre>
 
</pre>
 
=install=
 
*apt-get install bind9
 
=set resolv.conf=
 
*rm /etc/resolv.conf
 
*echo nameserver 127.0.0.1 > /etc/resolv.conf
 

Version vom 18. November 2019, 20:28 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

  • vi 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