Bu yazımda Centos/ Redhat ve benzeri sistemler için DNS Server Kurulumunu anlatacağım.
# system-config-packages
Gelen sekmelerde browse dizininden sunucu bölümüne -server'da olabilir kullandığınız dile göre- DNS Server'a çentik atarak kuruyoruz.Bu arada Bind chroot dizinine otomatik kuruluyor.
Dip Not => Chroot: Güvenlik için oluşturulmuş bir dosyadır.
Paketin kurulumu tamamlandıktan sonra ;
| 1 | | 2 | | 3 | | 4 | | 5 | | 6 | | 7 | | 8 | | 9 | | 10 | | 11 | | 12 | | 13 | | 14 | | 15 | | 16 | | 17 | | 18 | | 19 | | 20 | | 21 | | 22 | | 23 | | 24 | | 25 | | 26 | | 27 | | 28 | | 29 | | 30 | | 31 | | 32 | | 33 | | 34 | | 35 | | 36 | | 37 |
|
| # gedit /var/named/chroot/etc/named.conf
| |
| | // Red Hat BIND Configuration Tool
| | //
| | // Default initial "Caching Only" name server configuration
| | //
| |
| | options {
| | directory "/etc";
| | dump-file "/var/named/data/cache_dump.db";
| | statistics-file "/var/named/data/named_stats.txt";
| | /*
| | * If there is a firewall between you and nameservers you want
| | * to talk to, you might need to uncomment the query-source
| | * directive below. Previous versions of BIND always asked
| | * questions using port 53, but
| | BIND 8.1 uses an unprivileged
| | * port by default.
| | */
| | // query-source address * port 53;
| | allow-transfer {192.168.2.8;};
| | };
| |
| | zone "2.168.192.IN-ADDR.ARPA" IN {
| | type master;
| | file "noname.com.rev" ;
| | };
| |
| | zone "." IN {
| | type hint;
| | file "named.root";
| | };
| |
| | zone "noname.com" {
| | type master;
| | file "noname.com.zone";
| | }; |
|