大网数据广告活动
服务器运维问答

Configure bind9 as slave DNS server w/ master DNS server having dynamic IP

· 52CE 我爱测

I'd like to configure bind9 as DNS slave server doing axfr from a DNS master server (PowerDNS) which is behind a dynamic IP. The usual configuartion is: zone "example.com" { type slave; masters { 198.199.120.1; }; file "/var/lib/…

问题原文

原帖链接 · geohei · CC BY-SA 3.0

I'd like to configure bind9 as DNS slave server doing axfr from a DNS master server (PowerDNS) which is behind a dynamic IP.

The usual configuartion is:

zone "example.com" {
  type slave;
  masters { 198.199.120.1; };
  file "/var/lib/bind/db.example.com";
};

I can't simply change the IPv4 (198.199.120.1) into a FQDN (mydynaddr.home.net).

How can I do this?

已采纳解答

原帖链接 · Calle Dybedahl · CC BY-SA 3.0

I don't think you can get BIND to do that. DNS isn't really designed with dynamic IP addresses in mind, so solving this entirely on the DNS level is likely to be quite tricky. I suspect your easiest option is to rsync the zone files over to the BIND host and then use ssh to do an rndc reload.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-05-22)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。