小编Abc*_*Xyz的帖子

绑定,强制在从属设备上更新区域

我有两个测试服务器主从:

主人正在更新奴隶,但速度很慢。如何加快速度。

大师 (192.168.0.122) /etc/named.conf

zone "domain.com." {
    type master;
    file "caching-example/domain.com.db";
    //allow-update { key rndc-key;};
    notify yes;
    also-notify    { 192.168.0.66; };
    allow-transfer { 192.168.0.66; };
};
Run Code Online (Sandbox Code Playgroud)

从 (192.168.0.66) /etc/named.conf

zone "domain.com" {
    type slave;
    file "caching-example/domain.com.db";
    //allow-update { key rndc-key; };
    //allow-transfer { none; };
    allow-notify { 192.168.0.122; };
    masters      { 192.168.0.122; };
}
Run Code Online (Sandbox Code Playgroud)

主 /var/named/caching-example/domain.com.db 区域

$TTL    3600
$ORIGIN domain.com.
@       IN      SOA     darkstar.example.net.    root.example.net. (
                 2012033101         ; Serial
                       3600         ; Refresh
                       1800         ; Retry
                     604800         ; Expire …
Run Code Online (Sandbox Code Playgroud)

bind

9
推荐指数
2
解决办法
3万
查看次数

标签 统计

bind ×1