Bind9 on Debian

#CloudTips How to add new Zone in Bind or Bind9 . Tested with Ubuntu and Debian. Must work with other distros as well

 · 1 min read

Add the forllowing on /etc/bind/named.conf


zone "vodafone.qa" IN {

        type master;

        file "/etc/bind/db.zone1";

        allow-update { none; };

};


and on /etc/bind/db.zone1



$TTL   604800

@      IN     SOA    example.com. mail.example.com. (

                             21        ; Serial

                         604800        ; Refresh

                          86400        ; Retry

                        2419200        ; Expire

                         604800 )      ; Negative Cache TTL

;

@      IN     NS      ns.example.com.

ns     IN     A      8.8.8.8

@      IN     A      172.16.6.4

ims    IN     A      172.16.6.4


Restart service bind

sudo service bind restart


Team Claudion

Senior consultant

25 comments
CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

CpjJwWHV May 24, 2022

1

Add Comment