dhcp静态赋值不会在DHCPRELEASE之后清除绑定


1

我在OSX主机上的VirtualBox中有一组虚拟机。

我的Gateway-VM是Ubuntu 13.04,带有4个NIC。在此计算机上,ISC-DHCP-Server和Bind9正在运行,并且当所提供的IP来自相应NIC的已定义地址池时,DDNS更新可正常工作。

如果我为客户端计算机分配静态地址,则在bind中创建该条目,但是当我关闭该VM并发出DHCPRELEASE时,不会删除DNS条目。

VM启动时/ var / log / syslog的内容:

Aug 11 21:04:55 raring-gw dhcpd: DHCPDISCOVER from 08:00:27:1f:20:81 via eth2
Aug 11 21:04:55 raring-gw dhcpd: DHCPOFFER on 192.168.102.35 to 08:00:27:1f:20:81 via eth2
Aug 11 21:04:55 raring-gw dhcpd: DHCPREQUEST for 192.168.102.35 (192.168.102.1) from 08:00:27:1f:20:81 via eth2
Aug 11 21:04:55 raring-gw dhcpd: DHCPACK on 192.168.102.35 to 08:00:27:1f:20:81 via eth2
Aug 11 21:04:55 raring-gw named[1242]: client 192.168.103.1#46752/key rndc-key: updating zone 'adnet/IN': update unsuccessful: precmysql.services.adnet: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Aug 11 21:04:55 raring-gw named[1242]: client 192.168.103.1#46752/key rndc-key: signer "rndc-key" approved
Aug 11 21:04:55 raring-gw named[1242]: client 192.168.103.1#46752/key rndc-key: updating zone 'adnet/IN': deleting rrset at 'precmysql.services.adnet' A
Aug 11 21:04:55 raring-gw named[1242]: client 192.168.103.1#46752/key rndc-key: updating zone 'adnet/IN': adding an RR at 'precmysql.services.adnet' A
Aug 11 21:04:55 raring-gw dhcpd: Added new forward map from precmysql.services.adnet. to 192.168.102.35
Aug 11 21:04:55 raring-gw named[1242]: client 192.168.103.1#46752/key rndc-key: signer "rndc-key" approved
Aug 11 21:04:55 raring-gw named[1242]: client 192.168.103.1#46752/key rndc-key: updating zone '168.192.in-addr.arpa/IN': deleting rrset at '35.102.168.192.in-addr.arpa' PTR
Aug 11 21:04:55 raring-gw named[1242]: client 192.168.103.1#46752/key rndc-key: updating zone '168.192.in-addr.arpa/IN': adding an RR at '35.102.168.192.in-addr.arpa' PTR
Aug 11 21:04:55 raring-gw dhcpd: Added reverse map from 35.102.168.192.in-addr.arpa. to precmysql.services.adnet.

当虚拟机关闭时,这是在这个方面:

Aug 11 21:08:18 raring-gw dhcpd: DHCPRELEASE of 192.168.102.35 from 08:00:27:1f:20:81 via eth2 (not found)

forward-zone-file包含VM的此条目:

precmysql       A   192.168.102.35
                TXT "000d0dbca2b85df43a3464744da73ab515"

反向区域文件包含:

35          PTR precmysql.services.adnet.

在/etc/dhcp/dhcpd.conf中,主机定义如下:

host precmysql {
    hardware ethernet 08:00:27:1F:20:81;
    fixed-address 192.168.102.35;
    option host-name "precmysql";
    ddns-hostname "precmysql";
}

这是DHCP服务器的DDNS配置:

ddns-update-style interim;
ddns-updates on;
ignore client-updates;
update-static-leases on;

我查看了/var/lib/dh​​cp/dhcpd.leases,并没有记录任何静态声明。它仅包含来自定义的地址池的分配条目。

有没有人遇到同样的问题,也许有解决方案?谢谢!


你有文件来设置DNS和dhcp。请提供文件
初学者2015年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.