0% found this document useful (0 votes)
61 views8 pages

Practice DNS

The document provides instructions for configuring a DNS server using Bind on Linux. It describes how to install Bind from source, configure the named.conf file, add zone entries for master and slave DNS servers, and start the named daemon. Specific steps include downloading and compiling Bind, configuring options in named.conf, adding root hints and zone files for domains, and verifying the named process is running.

Uploaded by

m3onh0x84
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views8 pages

Practice DNS

The document provides instructions for configuring a DNS server using Bind on Linux. It describes how to install Bind from source, configure the named.conf file, add zone entries for master and slave DNS servers, and start the named daemon. Specific steps include downloading and compiling Bind, configuring options in named.conf, adding root hints and zone files for domains, and verifying the named process is running.

Uploaded by

m3onh0x84
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 8

PRACTICE PRINTER

SAIGONLAB 83 Nguyễn Thị Nhỏ, P9, Q.Tân Bình, Tp. HCM LPI 102
Compile & Install Bind
Configure DNS Server Use Bind
Configure DNS client

SAIGONLAB 83 Nguyễn Thị Nhỏ, P9, Q.Tân Bình, Tp. HCM LPI 102
#wget -c ftp://ftp.isc.org/isc/bind9/9.3.0/bind-9.3.0.tar.gz
#tar zxf bind-9.3.0.tar.gz
#cd bind-9.3.0
#./configure --prefix=/usr/local/bind
#make
#make install

SAIGONLAB 83 Nguyễn Thị Nhỏ, P9, Q.Tân Bình, Tp. HCM LPI 102
Configure DNS Server Use Bind

/usr/local/bind/etc/named.conf
options {
        directory "/namedb";
        version "I do not give any version info";
         pid-file "/var/run/named.pid";
         allow-transfer { none ;};
};

zone "." IN {
        type hint;
        file " /etc/named.root";
};
SAIGONLAB 83 Nguyễn Thị Nhỏ, P9, Q.Tân Bình, Tp. HCM LPI 102
Configure DNS Server Use Bind

Download DNS root list


#cd /usr/local/bind/etc
#wget ftp://ftp.internic.com/domain/named.root
Create User/Group for Run DNS daemon
#groupadd named
#useradd named -d /usr/local/bind -s /bin/false -g
named -c "DNS Jail User“
 Start DNS Server
#/usr/local/bind/sbin/named -u named -c /etc/named.conf
Check Daemon start or not
#ps aux | grep -v grep | grep named

SAIGONLAB 83 Nguyễn Thị Nhỏ, P9, Q.Tân Bình, Tp. HCM LPI 102
Configure Master DNS Server Use Bind

Add the entries in /usr/local/bind/etc/named.conf


zone "test.com" {
        type master ;
        file "test.com.zone";
        allow-query {any;};
        allow-update { none; };  
};

SAIGONLAB 83 Nguyễn Thị Nhỏ, P9, Q.Tân Bình, Tp. HCM LPI 102
Configure Master DNS Server Use Bind
/usr/local/bind/namedb/test.com.zone
$TTL 14400
@               IN SOA  ns1.test.com. gyilmaz.test.com. (
                        2005030601      ; serial
                        7200           ; Refresh
                        7200            ; Retry
                        604800          ; Expire
                        86400 )         ; Minimum
test.com.                            IN      NS   ns1.test.com.
test.com.                            IN      A       144.122.211.1
mail.test.com.                    IN      A       144.122.211.1
www.test.com.                   IN      A       144.122.211.1
test.com.                             IN     MX 5    mail.test.com.
webmail.test.com.              IN     A          144.122.211.1
securewebmail.test.com.  IN     A       144.122.211.2
SAIGONLAB 83 Nguyễn Thị Nhỏ, P9, Q.Tân Bình, Tp. HCM LPI 102
Configure Slave DNS Server Use Bind
options {
        directory "/namedb";
        version "I do not give any version info";
         pid-file "/var/run/named.pid";
         allow-transfer { none ;};
};

zone "." IN {
        type hint;
        file "named.root";
};
zone "test.com" {
        type slave ;
         masters { 144.122.211.1; };
        file "test.com.zone";
        allow-query {any;};
        allow-update { none; };  
};
SAIGONLAB 83 Nguyễn Thị Nhỏ, P9, Q.Tân Bình, Tp. HCM LPI 102

You might also like