WGOD!

The general member portfolio consists of software developers, company owners and investors. Our mission is to ensure that all shared content is clean and functional. For this reason, unfortunately, not every member is accepted. Please do not attempt to register for 1 software or 1 theme, membership is paid. You can join our telegram group below or send an e-mail to [email protected] to purchase the invite code for 10$.

Join Telegram

CentOS DNS Kurulumu

Info

Konu Hakkında Merhaba, tarihinde Linux Code kategorisinde RedBytes tarafından oluşturulan CentOS DNS Kurulumu başlıklı konuyu okuyorsunuz. Bu konu şimdiye dek 753 kez görüntülenmiş, 8 yorum ve 3 tepki puanı almıştır...
Kategori Adı Linux Code
Konu Başlığı CentOS DNS Kurulumu
Thread starter RedBytes
Start date
Replies
Views
First message reaction score
Son Mesaj Yazan proje99

RedBytes

Friend
New
28
Resources
2
10
Warez Point
Turkish Liras
0₺
Offline
  • Sunucu ismi : dns1.abc.com
  • Sunucu ip’si : 192.168.100.20/24
Gerekli paketleri yükleyelim;
Code:
# yum -y install bind bind-libs bind-utils
Başlangıçta servisin otomatik çalışması için;
Code:
# chkconfig –-level 35 named on
Servisin başlangıçta standart config dosyasını oluşturması için;
Code:
# service named start
Oluşturulmuş olan config dosyasını aşağıdaki kod ile editlersek;

Code:
//
// 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/ for example named configuration files.
//
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.     root.abc.com. (12 4h 1h 1w 1h)
@IN      NS      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
@       SOA     dns.abc.com.     root.abc.com. (12 4h 1h 1w 1h)
@       IN      NS      dns.abc.com.
211     IN      PTR     dns.abc.com.

Reset
Code:
# service named restart

Test
Code:
# 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
 

msd43msd

Friend
New
46
Resources
8
50
Warez Point
50ա
Turkish Liras
0₺
Offline
  • Sunucu ismi : dns1.abc.com
  • Sunucu ip’si : 192.168.100.20/24
Gerekli paketleri yükleyelim;
Code:
# yum -y install bind bind-libs bind-utils
Başlangıçta servisin otomatik çalışması için;
Code:
# chkconfig –-level 35 named on
Servisin başlangıçta standart config dosyasını oluşturması için;
Code:
# service named start
Oluşturulmuş olan config dosyasını aşağıdaki kod ile editlersek;

Code:
//
// 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/ for example named configuration files.
//
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.     root.abc.com. (12 4h 1h 1w 1h)
@IN      NS      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
@       SOA     dns.abc.com.     root.abc.com. (12 4h 1h 1w 1h)
@       IN      NS      dns.abc.com.
211     IN      PTR     dns.abc.com.

Reset
Code:
# service named restart

Test
Code:
# 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
yararlı içerik teşekkürler
 
Guest
Help Users
  • No one is chatting at the moment.
  • aLeech:
    Guest wariclis has joined the room.
  • (Guest) wariclis:
    hi
    Quote
    (Guest) wariclis: hi
    Back
    Top