I have a self-made Linux router running dnsmasq. It has two different NICs through which clients are connected; one of them has the subnet
192.168.1. and one the subnet
/etc/dnsmasq.conf looks like this:
except-interface=enp1s0 dhcp-range=interface:wlp2s0,192.168.1.10,192.168.1.25,255.255.255.0,48h dhcp-range=interface:enp0s29f7u4,192.168.2.10,192.168.2.25,255.255.255.0,48h
Resolving the clients works between subnets, but from neither subnet can I resolve the hostname of the server itself. If I add a static rule using
address=/name/IP I have to choose on of the subnets and pinging (among other things) does not work from the other subnet. So for example if I set
then I can resolve the hostname from the
192.168.2. subnet, but pings are unanswered. How do I solve that situation? I would like not having to bridge the interfaces or something like this.