CentOS DNS Kurulumu

Transkript

CentOS DNS Kurulumu
CentOS DNS Kurulumu
Kullanılan Bilgiler
Sunucu ismi : dns.abc.com
Sunucu ip’si : 192.168.100.20/24
Gerekli paketleri yükleyelim;
# yum -y install bind bind-libs bind-utils
Başlangıçta servisin otomatik çalışması için;
# chkconfig –-level 35 named on
Servisin başlangıçta standart config dosyasını oluşturması
için;
# service named start
Oluşturulmuş
editlersek;
olan
config
dosyasını
aşağıdaki
kod
ile
# vi /etc/named.conf
Config Ayarları
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND
named(8) DNS
// server as a caching only nameserver (as a localhost DNS
resolver only).
//
// See /usr/share/doc/bind*/sample/
configuration files.
for
example
named
//
options {
directory
“/var/named”;
dump-file
“/var/named/data/cache_dump.db”;
statistics-file “/var/named/data/named_stats.txt”;
memstatistics-file
“/var/named/data/named_mem_stats.txt”;
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
/* Path to ISC DLV key */
bindkeys-file “/etc/named.iscdlv.key”;
};
logging {
channel default_debug {
file “data/named.run”;
severity dynamic;
};
};
zone “.” IN {
type hint;
file “named.ca”;
};
zone “abc.com” {
type master;
file “abc.com.fwd”;
};
zone “0.168.192.in-addr.arpa” {
type master;
file “abc.com.rev”;
};
include “/etc/named.rfc1912.zones”;
named.conf dosyasında isimleri girdiğimizde;
cd /var/named
# vi abc.com.fwd
$ORIGIN abc.com.
$TTL 3D
@SOA
dns.abc.com.
@IN
NS
root.abc.com. (12 4h 1h 1w 1h)
dns.abc.com.
dns.abc.com.
IN
A
192.168.100.20
www
IN
A
192.168.100.20
# vi abc.com.rev
$ORIGIN 0.168.192.in-addr.arpa.
$TTL 3D
@
1h)
SOA
dns.abc.com.
root.abc.com. (12 4h 1h 1w
@
IN
NS
dns.abc.com.
211
IN
PTR
dns.abc.com.
Reset
# service named restart
Test
# cat /etc/resolve.conf
search abc.com
nameserver 192.168.100.20
# nslookup www.abc.com
Server:
192.168.100.20
Address:
192.168.100.20#53
Name:
www.abc.com
Address: 192.168.100.20

Benzer belgeler

içindekiler

içindekiler GlobalNames Zone  

Detaylı

Ubuntu Üzerinde DNS Sunucu Kurulumu ve

Ubuntu Üzerinde DNS Sunucu Kurulumu ve Yapılandırılması VmWare programı içerisine kurulan Ubuntu işletim sistemine “Bind9” adlı Dns Server programının kurulumu ve ayarlarının yapılması, bu ayarlar sonucunda istenilen domain adreslerinde...

Detaylı