-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
luci-mod-network: The expand-hosts seems to also affect the AAAA DNS records. #7524
base: master
Are you sure you want to change the base?
Conversation
Some nuance like this is worth investigating. A problem more likely lies in how dnsmasq works. The setting you mention is a plausible offender. But your amendment invalidates an existing translation. It's better to add a new follow-on string. E.g. ... + ' ' +_('your string'); Because a host has IPs via DHCP doesn't mean a dns lookup will automatically work. You likely need to assign it a static IP under host names in DHCP. |
dfd32f5
to
6b1c47c
Compare
Thanks for the hint about preserving the existing translations, updated in 6b1c47c. I specifically kept the wording a little bit vague WRT to when the AAAA records get actually created. But on a stock OpenWrt 23.05.5 (r24106-10cc5fcd00) I see
and when I uncheck the
|
Can you show me the content of your |
The vanilla content after resetting to defaults is
When I uncheck that --- dhcp.orig 2025-01-06 08:23:26.949500182 +0100
+++ dhcp 2025-01-06 08:23:07.720432382 +0100
@@ -1,25 +1,18 @@
config dnsmasq
option domainneeded '1'
- option boguspriv '1'
- option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
- option expandhosts '1'
- option nonegcache '0'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
- option nonwildcard '1'
option localservice '1'
option ednspacket_max '1232'
- option filter_aaaa '0'
- option filter_a '0'
config dhcp 'lan'
option interface 'lan' |
It's possible your tests may have hit cached entries. Also, the dnsmasq manpage has this to say about host-records (
These are defined by Compare with So the question is: where do your entries come from? e.g. |
I see
These records do not change when I toggle |
Then this seems related not to 'dns' entries per sé, but DHCP entries. Wording here is important, if we are going to put a message that users will read. In which case, let's revise it to:
as stated in the dnsmasq manpage. There's a big but here: there might be undefined behaviour or a bug in dnsmasq regarding this. I don't see why AAAA should be absent when this is changed, and A get treated. |
Actually, what is the content of your |
…derived names, for example their AAAA DNS records. Signed-off-by: Jan Pazdziora <jan.pazdziora@code.adelton.com>
6b1c47c
to
35bef59
Compare
Updated, rebased on master.
I don't disagree. :-)
The content of the
and the |
Is it possible that your resolv file gets clobbered after changing the setting? That |
Can you elaborate on that "clobbered"? (Non-native speaker here.) |
Replaced with something completely different? |
Ah. No, the content of
This was on a freshly installed OpenWrt 24.10.0-rc5 (r28304-6dacba30a7) x86_64 VM. |
Signed-off-by: <my@email.address>
row (viagit commit --signoff
)<package name>: title
first line subject for packagesPKG_VERSION
in the MakefileI've spent quite some time trying to figure out why
returns the A record and
does not return the AAAA record, even if I saw the IPv6 address assigned to the host and listed in the Active DHCPv6 Leases.
I finally found out that I have the
Expand hosts
unchecked (because I prefer to use the full hostnames) and that it does not affect the A records but does affect the AAAA records. It simply did not occur to me to just checkand I thought something about AAAA records is broken.
If there was a note in the UI mentioning the relationship of the
Expand hosts
to the IPv6 addresses and AAAA records, it would have saved me nontrivial amount of time. Adding a note to help others who might find themselves in the same situation.