Monday, February 2, 2015

FreeBSD 8.x bind kurulum notları

Paketlerin indirilmesi

auth# mkdir /root/setup
auth# cd /root/setup
auth# fetch http://ftp.freebsd.org/%2Fpub/FreeBSD/ports/i386/packages-8-stable/dns/bind99-9.9.5.tbz
auth# fetch http://ftp.freebsd.org/%2Fpub/FreeBSD/ports/i386/packages-8-stable/All/libiconv-1.14_1.tbz
auth# fetch http://ftp.freebsd.org/%2Fpub/FreeBSD/ports/i386/packages-8-stable/All/libxml2-2.8.0_3.tbz

Kurulum

auth# pkg_add -f bind99-9.9.5.tbz
pkg_install EOL is scheduled for 2014-09-01. Please consider migrating to pkgng
http://blogs.freebsdish.org/portmgr/2014/02/03/time-to-bid-farewell-to-the-old-pkg_-tools/
 
*************************************************************************
*           _  _____ _____ _____ _   _ _____ ___ ___  _   _             *
*          / \|_   _|_   _| ____| \ | |_   _|_ _/ _ \| \ | |            *
*         / _ \ | |   | | |  _| |  \| | | |  | | | | |  \| |            *
*        / ___ \| |   | | | |___| |\  | | |  | | |_| | |\  |            *
*       /_/   \_\_|   |_| |_____|_| \_| |_| |___\___/|_| \_|            *
*                                                                       *
*       If you are running BIND 9 in a chroot environment, make         *
*       sure that there is a /dev/random device in the chroot.          *
*                                                                       *
*       BIND 9 also requires configuration of rndc, including a         *
*       "secret" key.  The easiest, and most secure way to configure    *
*       rndc is to run 'rndc-confgen -a' to generate the proper conf    *
*       file, with a new random key, and appropriate file permissions.  *
*                                                                       *
*       The /etc/rc.d/named script in the base will do both for you.    *
*                                                                       *
*************************************************************************

named servisinin açılışa eklenmesi ve rc.conf'daki gözden geçirilmesi

auth# echo 'named_enable="YES"' >> /etc/rc.conf
auth# vi /etc/rc.conf

named servisinin çalıştırılması

auth# service named start
wrote key file "/var/named/etc/namedb/rndc.key"
Starting named.

named.conf daki problemli zone tanımları:

örnek hatalı girdiler:
1)
zone "xxx.com "
(boşluk olmamalı)

2)
zone "xy_z.xxx.com"
(_ kullanılmamalı)

No comments:

Post a Comment