Bug #14942
closedDNS Resolver host overrides ignore all aliases if first entry has a domain set but no hostname
100%
Description
I am not sure this is normal behaviour but might stem from code to control input.
I tried this with multiple alias and it seems that if the parent domain (example.com) is the first entry when the primary HO entry is a sub-domain of it, then the alias are all wiped. IF the parent domain (example.com) is any entry but the top one, then the alias all remain.
This works¶
- Create a Host Override entry
- Create alias, parent domain (example.com) last or just not first entry.
- Alias appear as they should
Alias are all wiped¶
- Create a Host Override entry
- Create alias, parent domain (example.com) first
- The primary HO entry stays but all of the alias are wiped
Files
Updated by Lev Prokofev about 1 year ago
Can confirm this behavior tested on
23.09-RC (amd64) built on Fri Oct 27 4:51:00 MSK 2023 FreeBSD 14.0-CURRENT
Updated by Jim Pingle about 1 year ago
- Target version set to 2.8.0
- Plus Target Version set to 24.03
Just to note - this isn't a new bug/regression. I can reproduce it on 22.05, but I didn't go back any farther than that.
Updated by Jim Pingle 9 months ago
- Subject changed from Host Overrides - All alaises for the entry are wiped out if you do this to DNS Resolver host overrides ignore all aliases if first entry has a domain set but no hostname
Updated by Jim Pingle 9 months ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Applied in changeset 0ea1a9918e4baf00f563a180f801f00b581aebcf.
Updated by Lev Prokofev 9 months ago
The patch fixed the behavior. I think the issue can be marked as resolved.
tested on
23.09.1-RELEASE (amd64) built on Wed Dec 20 21:27:00 MSK 2023 FreeBSD 14.0-CURRENT
Updated by dylan mendez 9 months ago
Can confirm the patch is working correctly on 23.09.1
Updated by Lev Prokofev 8 months ago
I think it should be re-opened, I noticed that after the patch you can't add host override without setting the alias "The field Alias Domain is required."
Updated by Danilo Zrenjanin 8 months ago
I couldn't replicate the issue on 24.09 - BETA
Updated by Lev Prokofev 8 months ago
Tested on the latest 23.04 build, the error did not occur.
24.03-BETA (amd64)
built on Fri Mar 29 6:00:00 UTC 2024
FreeBSD 15.0-CURRENT
Updated by Jim Pingle 8 months ago
Lev Prokofev wrote in #note-9:
I think it should be re-opened, I noticed that after the patch you can't add host override without setting the alias "The field Alias Domain is required."
You probably only applied the first commit, there are two (check the "Associated Revisions" tab).