LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 628|回复: 4

bind9+dhcpd3,ptr记录更新不成功的问题

[复制链接]
发表于 2004-9-25 20:19:40 | 显示全部楼层 |阅读模式
A记录更新成功,PTR记录怎么也更新不了?

不知道dhclient.conf或者if脚本里什么参数没有加?

cheers
 楼主| 发表于 2004-9-25 20:25:28 | 显示全部楼层
# dhcpd.conf
#
# configuration file for ISC dhcpd
#
server-identifier andreas.isc.org;
authoritative;

# specifies the method to use to connect to the DNS server and update it.
ddns-update-style interim;

# this has to be the same key as is used in named.conf


key andrw {
        algorithm hmac-md5;
        secret "uPDIdHRleY5/X1p+odGhOg==";
};

# this section describes what key to use in what zone
zone isc.org. {
        primary 10.16.13.1;
        key   andrw;
}
zone 13.16.10.in-addr.arpa. {
        primary        10.16.13.1;
        key   andrw;
}
# and this section holds all the options for the subnet listed,
# include the range of addresses to lease out , gateways etc.
subnet 10.16.13.0 netmask 255.255.255.0 {
        # use these addresses:
        range        10.16.13.2        10.16.13.254;
        option        subnet-mask        255.255.255.0;
        option        broadcast-address 10.16.13.255;
        option        domain-name        "isc.org";
        one-lease-per-client        on;
        default-lease-time        14400;
        max-lease-time                14410;
        option        ip-forwarding        off;
        option        time-offset        -18000;
        # set a few handy default options
        option  routers          10.16.13.1;
        option  domain-name-servers      10.16.13.1;
}
 楼主| 发表于 2004-9-25 20:26:28 | 显示全部楼层
// /etc/bind/named.conf

key andrw {
        algorithm hmac-md5;
        secret "uPDIdHRleY5/X1p+odGhOg==";
};

acl "home" {10.16.13.0/24;127.0.0.1;};

options {
        directory "/etc/bind";
        pid-file  "/var/run/named.pid";
        allow-query {"home";};
        forwarders  {202.96.64.68;202.96.75.68;};
};

controls {
        inet 127.0.0.1 port 953
        allow {127.0.0.1;10.16.13.1;} keys {"andrw";};
};

zone "." {
        type hint;
        file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
        type master;
        file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
        type master;
        file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
        type master;
        file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
        type master;
        file "/etc/bind/db.255";
};

// add entries for other zones below here
zone "isc.org" {
        type master;
        notify no;
        file "/etc/bind/isc.org";
        allow-update {key andrw;};
};

zone "13.16.10.in-addr.arpa" {
        type master;
        notify no;
        file "/etc/bind/isc.org.rev";
        allow-update {key andrw;};
};
 楼主| 发表于 2004-9-25 20:29:07 | 显示全部楼层
域名是为了测试随便写的,但是现在更新PTR记录不成功,A记录可以,不知道为什么.
 楼主| 发表于 2004-9-26 11:23:52 | 显示全部楼层
测试通过,原来配置文件少写了一行,呵呵.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表