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

[plamo:18428] Re: TCP Wrapperでnamedの制御プライマリの設定



現状のDNSサーバー、プライマリの設定。
●nemed.confの内容

options {
        directory "/var/named";
};

zone "." {
        type hint;
        file "named.root";
};

zone "****.**.jp" {
        type master;
        file "****.**.jp.db";
        allow-update { none; };
};

zone "**.**.**.in-addr.arpa" {
        type master;
        file "**.**.**.in-addr.arpa.db";
        allow-update { none; };
};

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

zone "0.0.127.IN-ADDR.ARPA" {
        type master;
        file "0.0.127.in-addr.arpa.db";
};

●****.**.jp.dbの内容

@       IN      SOA     host3.****.**.jp.  root.host3.****.**.jp. (
                        2003041910 ; serial
                        28800 ; refresh
                        7200 ; retry
                        604800 ; expire
                        86400 ; ttl
                        )

        IN      NS      host3.****.**.jp
        IN      NS      host4.****.**.jp

        IN      MX      10      host2.****.**.jp

localhost       IN      A       127.0.0.1
loghost         IN      CNAME   localhost

host1           IN      A       **.**.**.02
host2           IN      A       **.**.**.03
host3           IN      A       **.**.**.04
host4           IN      A       **.**.**.05

www     IN      CNAME   host1
mail    IN      CNAME   host2

●**.**.**.in-addr.arpa.dbの内容
@       IN      SOA     host3.****.**.jp.     root.host3.****.**.jp. (
                        2003041910 ; serial
                        28800 ; refresh
                        7200 ; retry
                        604800 ; expire
                        86400 ; ttl
                        )


        IN      NS      host3.****.**.jp.
        IN      NS      host4.****.**.jp.

        IN      PTR     ****.**.jp
        IN      A       255.255.255.0

02      IN      PTR     host1.****.**.jp.
03      IN      PTR     host2.****.**.jp.
04      IN      PTR     host3.****.**.jp.
05      IN      PTR     host4.****.**.jp.

●0.0.127.in-addr.arpa.dbの内容
@       IN      SOA     host3.****.**.jp.     root.host3.****.**.jp. (
                        2003041910 ; serial
                        28800 ; refresh
                        7200 ; retry
                        604800 ; expire
                        86400 ; ttl
                        )


        IN      NS      host3.****.**.jp.
        IN      NS      host4.****.**.jp.

0       IN      PTR     localnetwork.
1       IN      PTR     localhost.

●hosts.allowの内容
#
# hosts.allow   This file describes the names of the hosts which are
#               allowed to use the local INET services, as decided by
#               the '/usr/sbin/tcpd' server.
#
# Version:      @(#)/etc/hosts.allow    1.00    05/28/93
#
# Author:       Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org
#
#
ALL : ALL
# End of hosts.allow.

References
[plamo:18425] Re: TCPWrapperでnamedの制御, Shun-ichi TAHARA (田原 俊一)

[検索ページ] [メール一覧]
Plamo ML 公開システム