I am new to DNS Setup, i have recently setup DNS server Master and Slave using bind9. Here is my config...
Master DNS - ns1.example.com. - 192.0.2.1
Slave DNS - ns2.example.com. - 192.0.2.2
named.conf.options
options {
directory "/var/cache/bind";
recursion no;
allow-transfer { none; };
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
named.conf.local
zone "example.com" {
type master;
file "/etc/bind/zones/db.example.com";
allow-transfer { 192.0.2.2; };
};
Slave named.conf.local
zone "example.com" {
type slave;
file "db.example.com";
masters { 192.0.2.1; };
};
This setup works perfect, but now i want to add another domain. So should i only update named.conf.local
at master Sever and DNS server would be notified automatically...
For example...
zone "example2.com" {
type master;
file "/etc/bind/zones/db.example.com";
allow-transfer { 192.0.2.2; };
};
I am really confused with this, please suggest next step when i add more domains zones. Thank You.
Comments
Post a Comment