Ticket #2056 (closed defect: wontfix)
dns - dhcp fixed address problem
| Reported by: | rblenis@… | Owned by: | ejhernandez@… |
|---|---|---|---|
| Milestone: | 2.0.X | Component: | dhcp |
| Severity: | minor | Keywords: | |
| Cc: |
Description
if I add a dhcp fixed ip address for a client, then latter remove the fixed mapping so that the client will get a dynamic address, dns still returns the fixed address, even after rebooting ebox and client. this is with ebox 1.4 (DHCP module 1.4.1-0ubuntu1~ppa1~hardy1, DNS module 1.4-0ubuntu1~ppa1~hardy1).
Attachments
Change History
comment:2 Changed 3 years ago by effgee
I think I encountered the same problem here:
http://forum.zentyal.org/index.php?topic=5012.msg20526#msg20526
My solution which isn't good one is to remove the previous configs from bind and ebox-dns and start from scratch..
comment:3 Changed 3 years ago by jsoriano@…
- priority changed from normal to low
- Severity changed from normal to minor
comment:4 Changed 2 years ago by jsoriano@…
- Status changed from new to closed
- Resolution set to wontfix
Hi,
I think that the current behaviour is the correct one. The DNS daemon maintains a database for dynamic domains, when a host with a fixed address claims its IP throught DHCP, the database is updated. The entries in this database are removed after some time, so if you remove the fixed address, after some time the DNS server won't resolve it. It's also updated if the DHCP server is configured to assign the fixed address to a different host after this host requests it.
The only solution would be to remove this cache and restart the module, but then all the hosts whose dynamic domains are assigned throught DHCP would need to request their addresses again.
To remove the cache and restart the module you can do:
sudo rm /var/lib/bind/db.<domain>* sudo /etc/init.d/ebox dns restart
Thanks for reporting.