View RSS Feed

Peyman Yousefi

Bind DNS Forward & Reverse

امتیاز
توسط - 2012-07-31 - 05:25 PM (بازدید: 1322)
  
nano /etc/named.conf
کد:
include "/etc/rndc.key";

controls { inet 127.0.0.1 port 953 allow { localhost; none; } keys { rndc-key; }; };

acl clients { 192.168.35.0/24; };

options {
        listen-on port 53 { 127.0.0.1; 192.168.35.1; };
        listen-on-v6 port 53 { none; };
        directory       "/var/named";

        allow-query     { localhost; clients; none; };
        allow-recursion { localhost; clients; none; };
};

zone "." IN {
        type hint;
        file "named.ca";
};

zone "localhost" IN {
        type master;
        file "named.localhost";
        allow-update { none; };
};

zone "1.0.0.127.in-addr.arpa" IN {
        type master;
        file "named.loopback";
        allow-update { none; };
};

zone "apa.us.net" IN {
        type master;
        file "apa.zone";
        allow-update { none; };
};

zone "35.168.192.in-addr.arpa" IN {
        type master;
        file "ip.rev";
        allow-update { none; };
};
nano /var/named/apa.zone
کد:
$TTL    86400
$ORIGIN apa.us.net.
@  1D  IN        SOA    apa.us.net.     root.apa.us.net. (
                              2002022401 ; serial
                              3H ; refresh
                              15 ; retry
                              1w ; expire
                              3h ; minimum
                             )
       IN  NS     apa.us.net.

apa.us.net.     IN  A      192.168.35.1
nano /var/named/ip.rev
کد:
$TTL    86400
$ORIGIN 35.168.192.IN-ADDR.ARPA.
@  1D  IN        SOA    apa.us.net.     root.apa.us.net. (
                              2002022401 ; serial
                              3H ; refresh
                              15 ; retry
                              1w ; expire
                              3h ; minimum
                             )

        IN      NS      apa.us.net.

1      IN  PTR    apa.us.net.
mavrick، f14f21 و amin_4002 سپاسگزاری کرده‌اند.
دسته ها
Linux

نظر