Настройка DNS сервера на FreeBSD 11.1

  • Установка

# cd /usr/ports/dns/bind911

# make install clean

  • Настройка /etc/rc.conf:

named_enable=»YES»
named_flags=»-t /var/named»

/var/named —  песочница

Делаем песочницу для named

# mkdir -p /var/named/usr/local/etc/
# mkdir -p /var/named/var/dump
# mkdir -p /var/named/var/run/named
# mkdir -p /var/named/var/stats
# mv /usr/local/etc/namedb /var/named/usr/local/etc/
# cd /usr/local/etc
# ln -s /var/named/usr/local/etc/namedb
# cd /var/run
# ln -s /var/named/var/run/named