Summary: | unbound : Local DNS contain two IP adresses for the same host | ||
---|---|---|---|
Product: | IPFire | Reporter: | Phil SCAR <p27m> |
Component: | --- | Assignee: | Assigned to nobody - feel free to grab it and work on it <nobody> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | Minor Usability | ||
Priority: | - Unknown - | CC: | adolf.belka, michael.tremer, p27m |
Version: | 2 | ||
Hardware: | unspecified | ||
OS: | All | ||
Attachments: |
patch proposed
new patch file |
Description
Phil SCAR
2025-04-27 12:39:22 UTC
I found a workaround by deleting the records in the hosts file that have fixed leases. But it might be useful to avoid this use case. Created attachment 1638 [details]
patch proposed
I propose this patch, it adds the fixed leases which are already in host
Created attachment 1639 [details]
new patch file
or more simply
But I'll also add a rule to the documentation: "Do not define a host in Static Hosts if it is already defined in DHCP Fixed Leases: - Clients with a static address must be defined in the hosts file - Clients using DHCP to obtain a fixed address must be declared in DHCP Fixed Leases" (In reply to Phil SCAR from comment #4) > But I'll also add a rule to the documentation: > > "Do not define a host in Static Hosts if it is already defined in DHCP Fixed > Leases: > - Clients with a static address must be defined in the hosts file > - Clients using DHCP to obtain a fixed address must be declared in DHCP > Fixed Leases" I would be careful about adding that to the documentation. It should be more about if you get the issue you have described then your suggestion is an approach that might work to solve it but not a blanket don't define a host in the Hosts page if it is in the DHCP Fixed Leases list. I would not support a blanket comment such as that in the documentation. I don't have to use your approach at all. All of my hosts are in both DHCP Fixed Leases and in the Hosts page and I don't experience the same IP with two hosts names. I believe this might be because you are using a windows laptop and the windows dhcp client doesn't work the same as Linux dhcp clients. (In reply to Adolf Belka from comment #5) > (In reply to Phil SCAR from comment #4) > > But I'll also add a rule to the documentation: > > > > "Do not define a host in Static Hosts if it is already defined in DHCP Fixed > > Leases: > > - Clients with a static address must be defined in the hosts file > > - Clients using DHCP to obtain a fixed address must be declared in DHCP > > Fixed Leases" > > I would be careful about adding that to the documentation. It should be more > about if you get the issue you have described then your suggestion is an > approach that might work to solve it but not a blanket don't define a host > in the Hosts page if it is in the DHCP Fixed Leases list. I would not > support a blanket comment such as that in the documentation. > > I don't have to use your approach at all. All of my hosts are in both DHCP > Fixed Leases and in the Hosts page and I don't experience the same IP with > two hosts names. > > I believe this might be because you are using a windows laptop and the > windows dhcp client doesn't work the same as Linux dhcp clients. Thank you. You've already made this point on the forum. I have two comments on your point of view, but I don't know if I should make them here. - How would this rule change the operation of your network? Or of other users? - If you're not using Windows, you can't answer for all users, but I assume you have test sets with Windows machines. In any case: - If you declare static addresses in hosts, they are loaded into /etc/unbound/hosts.conf - If you declare fixed leases in DHCP, they must be loaded into /etc/unbound/dhcp-leases.conf If you declare both a static address and a fixed lease, they must be loaded into both. This makes sense to me. This is the purpose of my patch. Perhaps you should discuss this with your development teams; there may be Windows users. But I understand that you are the one who makes the decision. And I will respect it. The problem isn't limited to Windows. It's the same with Linux! https://community.ipfire.org/t/local-dns-not-reliable/13942/84?u=pscar13 Good morning people, first of all a couple of ground rules. (In reply to Phil SCAR from comment #6) > Perhaps you should discuss this with your development teams; there may be > Windows users. > > But I understand that you are the one who makes the decision. > > And I will respect it. I don't appreciate any of this "take it of leave it" in the conversation. This bug report is incredibly vage and not clear at all what actually is supposed to be the problem here. I am going to outright ignore everything that was said on the forum because that is pages full of guessing, making up facts and not a single person ever looked at the documentation or an RFC. You also are sending a patch and it is not clear to me what that is actually going to fix. So please explain clearly what the actual problem is. Or should I have a guess? Is it simply that DNS is not being updated in case you have a fixed lease? (In reply to Phil SCAR from comment #4) > But I'll also add a rule to the documentation: > > "Do not define a host in Static Hosts if it is already defined in DHCP Fixed > Leases: > - Clients with a static address must be defined in the hosts file > - Clients using DHCP to obtain a fixed address must be declared in DHCP > Fixed Leases" There is no relationship between the two things you are saying. Please explain it to me like I am five. So there is no bug here then... |