With the GUI, you can only configure one DOMAIN that is gonna be pushed to the clients. We need to add a second one, but the GUI declines this when separated by comma or space.
I can add it manually to server.conf, but this will be overwritten. AI suggested to use /var/ipfire/ovpn/scripts/server.conf.local but this doesn’t seem to be supported as it changes nothing (having restarted OpenVPN server).
Domain names are part of the name resolution, the task the DNS resolver works on.
The DHCP option “DOMAIN” suggests a domain name to complete the name, host name is supplied by client or generated otherwise.
DHCP is responsible to hand out an unique IP to the client identified by the MAC address, only.
Additional the server announces the (<hostname>.<domainname>, IP) to the DNS resolver for local name resolution.
IPFire selects the domain name from the associated network zone.
To allow multiple domain names in a network zone these must be defined in the host definition (for fixed leases!). But this isn’t implemented.
If you want to group some devices with a special domain name, you can do this by host definitions (WUI: Network–> Edit Hosts). It is necessary that the binding MAC<–>IP is fixed, because DNS only works on (name,IP) relations.
Just to make sure we are talking about the same things here: It’s not about standalone DHCP, it’s about the options the OpenVPN server is sending to the clients.