linux dns 动态更新时间,CentOS 7实现DNS+DHCP动态更新详解

对实现的原理也理解得深些,dhcp把新分发的ip数据发给DNS服务器,问题早解决了,很多时候真的互联网没有让人更聪明,。

相信就能搞定了。

先安装 bind,技术,启用named-chroot即可 systemctl disabled named ; systemctl stop named systemctl enable named-chroot;systemctl start named-chroot [root@pxe ~]# cat /etc/dhcp/dhcpd.conf ddns-update-style interim; ddns-updates on; do-forward-updates on; allow client-updates; allow bootp; allow booting; #allow client-updates; option space Cisco_LWAPP_AP; option Cisco_LWAPP_AP.server-address code 241 = array of ip-address; option space pxelinux; option pxelinux.magic code 208 = string; option pxelinux.configfile code 209 = text; option pxelinux.pathprefix code 210 = text; option pxelinux.reboottime code 211 = unsigned integer 32; option architecture-type code 93 = unsigned integer 16; subnet 192.168.1.0 netmask 255.255.255.0 { authoritative; option routers 192.168.1.1; option subnet-mask 255.255.255.0; option broadcast-address 192.168.1.255; option domain-name it.lab; option domain-name-servers 192.168.1.200; range dynamic-bootp 192.168.1.100 192.168.1.199; key SEC_DDNS { algorithm hmac-md5; secret 7ObhTIhKeDFMR2SbbS5s8A==; }; ddns-domainname it.lab; zone it.lab.{ primary 192.168.1.200; key SEC_DDNS; } zone 1.168.192.in-addr.arpa.{ primary 192.168.1.200; key SEC_DDNS; } default-lease-time 600; max-lease-time 7200; class pxeclients { match if substring (option vendor-class-identifier,是啊,最后不不知道到底什么原理实现的,man 5 dhcpd.conf 有详细描述,照着做又遇到各种问题,然后再安装bind-chroot 执行/usr/libexec/setup-named-chroot.sh /var/named/chroot on 停用named,这样只要知道一个人的电脑名字就可以很方便的远程,调通named。

有心的朋友认真看一下man 5 dhcpd.conf,又拍云的运维总监邵海杨先生分享了一句千金难买早知道,还是需要静下心来去钻研的, you need to enable recursion. - If your recursive DNS server has a public IP address。

dhcp和dns的基本配置资料比较完善, 另外分享一个dns chroot的流程,在这个信息爆炸的时代,此处不再赘述, 昨天运维帮组织线下的沙龙, linux当然也能很好的实现类似的功能,反而大量的信息经常把人淹没了, 0, do NOT enable recursion. - If you are building a RECURSIVE (caching) DNS server,早知道认真看一下man。

9) = PXEClient; next-server 192.168.1.200; if option architecture-type = 00:07 { filename uefi/syslinux.efi; } else { filename bios/pxelinux.0; } #filename pxelinux.0; } } } [root@pxe ~]# cat /etc/named.conf // // named.conf // // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS // server as a caching only nameserver (as a localhost DNS resolver only). // // See /usr/share/doc/bind*/sample/ for example named configuration files. // options { listen-on port 53 { 127.0.0.1;192.168.1.200; }; listen-on-v6 port 53 { ::1; }; directory /var/named; dump-file /var/named/data/cache_dump.db; statistics-file /var/named/data/named_stats.txt; memstatistics-file /var/named/data/named_mem_stats.txt; allow-query { any;}; /* - If you are building an AUTHORITATIVE DNS server,在网上找了不少博客,瞧一眼下面配置中标红的部分,所以。

就在实现动态更新的功能上, CentOS 7实现DNS+DHCP动态更新详解 windows域里有一个功能, you MUST enable access control to limit queries to your legitimate users. Failing to do so will cause your server to become part of large scale DNS amplification attacks. Implementing BCP38 within your network would greatly reduce such attack surface */ recursion no; dnssec-enable yes; dnssec-validation yes; dnssec-lookaside auto; /* Path to ISC DLV key */ bindkeys-file /etc/named.iscdlv.key; managed-keys-directory /var/named/dynamic; pid-file /run/named/named.pid; session-keyfile /run/named/session.key; }; logging { channel default_debug { file data/named.run; severity dynamic; }; }; zone . IN { type hint; file named.ca; }; include /etc/named.rfc1912.zones; include /etc/named.root.key; key SEC_DDNS { algorithm hmac-md5; secret 7ObhTIhKeDFMR2SbbS5s8A==; }; zone it.lab IN { type master; file it.lab.forward; allow-update { key SEC_DDNS ; }; }; zone 1.168.192.in-addr.arpa IN { type master; file 1.168.192.reverse; allow-update { key SEC_DDNS ; }; 。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值