reverse named setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

My ISP has allow 64 IPs to me. Delegate forward and reverse zone to me too as 64/26.73.52.10.in-addr.arpa. How do I configure named to do reserve lookup for myself and I am running on a FC4 machine. Below are some of what i had tried to do. Please take note, all IPs and domain are not mine. Just an example. Thanks.

named.conf

options {
       directory "/var/named";
};
zone "." IN {
       type hint;
       file "named.local";
};
zone "64/26.73.52.10.in-addr.arpa" IN {
       type master;
       file "64.26.73.52.10.in-addr.arpa";
};
zone "70.73.52.10.in-addr.arpa" IN {
       type master;
       file "10.52.73.70";
};
zone "dns1.mydomain.com" IN {
       type master;
       file "dns1.mydomain.com";
};

include "/etc/rndc.key";

---------------------------------------------------------------------------

/var/named/dns1.mydomain.com

$TTL 86400
@       IN      SOA     dns1.mydomain.com. postmaster.mydomain.com. (
                       2005110501
                       3600
                       7200
                       864000
                       86400 )

                               IN      NS          dns1.mydomain.com.
                               IN      NS          dns2.mydomain.com.

                               IN      MX     5    dns1.mydomain.com.

                               IN      A           10.52.73.70
ftp                             IN      A           10.52.73.70
mail                            IN      A           10.52.73.70
pop                             IN      A           10.52.73.70
dns2                              IN     A           10.52.73.80

----------------------------------------------------------------------------

/var/named/64.26.73.52.10.in-addr.arpa

$TTL 86400
@       IN      SOA     dns1.mydomain.com. postmaster.mydomain.com. (
                       2005083107
                       3600
                       7200
                       864000
                       86400 )

IN NS dns1.mydomain.com. IN NS dns2.mydomain.com.

64/26.73.52.10.in-addr.arpa IN NS dns1.mydomain.com. 64/26.73.52.10.in-addr.arpa IN NS dns2.mydomain.com.

70.64/26.73.52.10.in-addr.arpa IN PTR dns1.mydomain.com. 76.64/26.73.52.10.in-addr.arpa IN PTR dns1.domain2.com. 77.64/26.73.52.10.in-addr.arpa IN PTR another.domain..which.is.on.another.box.com. 77.64/26.73.52.10.in-addr.arpa IN PTR another.domains.on.another.box.com. 80.64/26.73.52.10.in-addr.arpa IN PTR dns2.mydomain.com.

-------------------------------------------------------------------------------------

/var/named/10.52.73.70

$TTL 86400
@       IN      SOA     dns1.mydomain.com. postmaster.mydomain.com. (
                       2005083107
                       3600
                       7200
                       864000
                       86400 )

IN NS dns1.mydomain.com. IN NS dns2.mydomain.com.

$ORIGIN 70.73.52.10.in-addr.arpa

                       IN    NS   dns1.mydomain.com.

70                      IN    PTR  dns1.mydomain.com.
76                      IN    PTR  domain2.com.
77 IN PTR another.domain..which.is.on.another.box.com.
78                      IN    PTR  another.domains.on.another.box.com.
80                      IN    PTR  dns2.mydomain.com.

------------------------------------------------------------------------------

Am i doing it correct? Please help.

Thanks
LC

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux