JAVA SCRIPT

RH 253: HOW TO CONFIGURE SPLIT DNS SERVER


        TO CONFIGURE SPLIT

IN MASTER

1. vim /var/named/chroot/etc/named.conf     ->edit this file
2. named-checkconf  /var/named/chroot/etc/named.conf
3. cd /var/named/chroot/var/named
4. cp forward.zone  external
5. vim external                     ->edit the file to change ips
6. chgrp named external
7. service named restart


From any internal ip
1. host server.matrix.com      ->wll find internal ip

From any external ip
1. host server.matrix.com      ->wll find external ip




CONFIGURATION FILES


1.  external-resolv


  search  example.com
nameserver 192.168.0.42



2.  masters-external


$TTL    86400
@        IN SOA    server.example.com.       root (
                    45        ; serial (d. adams)
                    3M        ; refresh
                    3M        ; retry
                    1W        ; expiry
                    1D )        ; minimum

            IN NS        server.example.com.
            IN NS        llc.subdomain.example.com.
server         IN A            192.168.10.42
slave         IN A            192.168.10.10
llc.subdomain    IN A            192.168.10.33
test         IN A            192.168.10.1



3. masters-named

acl "internal" { 192.168.0.42; 192.168.0.34; };
options {
directory "/var/named";
#allow-transfer { 192.168.0.10; };
};

view "internal" {
match-clients { "internal"; };
zone "example.com"{
type master;
file  "forward.zone";
};

zone "0.168.192.in-addr.arpa"{
type master;
file  "reverse.zone";
};
};

view "external"  {
match-clients { "any"; };
zone "example.com" {
type master;
file "external";
};
};




If you found this post useful, I would really love it, if you can Like the Page, or share it with your Facebook/Google+/Twitter Friends... It will keep me motivated. Thank you!

No comments:

Post a Comment