Hi,
in settings DHCP and DNS > General > Local domain I can define Local domain suffix appended to DHCP names and hosts file entries.
I wonder how to define different suffix for each interface. This would make sense to identify the subnet a client is connected to in Status > Overview > Active DHCP Leases.
In my OpenWrt router I have defined multiple interfaces:
lan
dmz
iot
guest
Sorry, but this is not, what I told you. Try the following line:
list dhcp_option 'option:domain-name,"dmz"'
It is important to enclose the string dmz in double-quotes, otherwise it won't work.
Based on what objective facts?
Please note: dhcp options are offers from the DHCP server to the DHCP client. The client is not obliged to accept these offers. Some clients do, other clients do not.
For example: my linux clients accept all advertised dhcp options, but android devices do not.
means: DNS domain handed out to DHCP clients. So it is a general setting for all interfaces. If you want interface specific domain names, you must delete this line in the config dnsmasq section.
All other listed options do not interfere with interface specific domain names ... as far as I can see.
After setting this DHCP option, the suffix is not added to any client in any subnet.
Means in LuCI > Status > Overview > Active DHCP Leases any hostname has no suffix.