i've a client properly getting IPv4 via DHCP, but the search domains are not getting passed from /etc/network/config down to dnsmasq it seems, as they never appear on the client's /etc/resolv.conf
relevant contents of /etc/config/network
config interface 'lan'
option device 'br-lan.2220'
option proto 'static'
option ipaddr '172.22.20.1'
option netmask '255.255.255.0'
list dns_search 'mgmt.home.my.domain'
list dns_search 'lan.home.my.domain'
-
and here's the dnsmasq instance section from /etc/config/dhcp
i was under the impression having it specified for each interface /etc/config/network does the same thing? are you saying i need to manually create dhcp-options also/instead ?
I'm not sure what you mean by the phrase "specified for each interface /etc/config/network does the same thing" - as noted, the config in question would be added to /etc/config/dhcp
No, I'm saying you need to configure the Option I noted above:
(EDIT: removed incorrect config section, fixed in post below)
i thought this belongs in the dnsmasq section not the dhcp section (which i have set)? at least that's where luci put it..
btw i'm also referring to the multiple search domains, not the dhcp-scope's main domain
update - i was under the impression adding it to the network interface's "dns_search" list would end up creating dhcp-option 119 (i could always set that manually elsewhere, but thought the former would be a cleaner way to specify that)
that's the primary domain yes, but that's not what i'm after.. i'm after being able to specify additional domains with which the client receives via dhcp to append to queries if the primary fails.. basically equivalent of dhcp option 119.. rather than manually add and number this option - i thought adding it to /etc/config/network (interface section) as such:
list dns_search 'mgmt.home.my.domain'
list dns_search 'lan.home.my.domain'
would accomplish this.. not sure what effect this has if not get passed down via DHCP - where does this variable actually take effect? only on the router itself or something?
This doesn't seem clear enough in the wording of that LUCI section (at least to me). I thought this was partly where I could configure how this interface behaves in relation to it's use by other hosts on the network as well (as some of the other settings in that very Advanced Settings tab also affect other clients (like IPv6 hints)..
I feel it would be helpful/clearer if there was a (?) This setting only applies to the router itself and not any clients that connect to ithint below it (like there is under the DNS weight setting below it), then I wouldn't have gone down this wrong path. Unless i'm the only dumb one Would a PR for this be considered?
You had to navigate into the interface config, then hit advanced. Also note, you missed hitting DHCP Server and the Advanced Settings Field for adding DHCP Options.
Keeping in mind you were attempting to configure DHCP Option No. 119, I'm not sure of what was unclear.
Why would a network setting apply to the clients that connect to it - that doesn't occur with other machines that have that setting, does it?
Provide the wording, and I or someone else with access could edit it
Since I just located that by navigating to the /etc/config/network page for Interfaces, then navigating to IPv4, and Static Protocol - I honestly don't see the confusion, as it relates to verbiage that would make it more clear. Feel free to provide a sentence or two for the Wiki?
EDIT: BTW, I think you could write that simple change and make your own PR, I can only imagine it's a bit of adding the info icon and HTML small text under the field. I'm sure someone here knows how to find the exact URL to that part of the code on GitHub.
i guess i thought some settings here affected the clients, without thinking specifically about the internals of dhcp (from a user-experience perspective, not everyone knows what dhcp-option the 119 one is.. as (without wishing to sound boastful) i wouldn't say i'm the typical user).. then again i did get mislead
That's exactly what I was suggesting.. I found at least two edits that would need to be made here and here, but i'm not sure if there's any other place that also is relevant?