Can't reach LAN subdomains from router

Hello, everyone. I'm using a reverse proxy to access my LAN services as subdomains (service.host.lan). I had to add address resolving in dnsmasq to be able to use the subdomains:

config dnsmasq
        list address '/*.host.lan/192.168.1.10'

Everything works as expected: I can visit my services from LAN on any connected device. However, the router is not able to resolve my subdomains:

$ ping host.lan
PING host.lan (192.168.1.10): 56 data bytes
64 bytes from 192.168.1.10: seq=0 ttl=64 time=0.296 ms
64 bytes from 192.168.1.10: seq=1 ttl=64 time=0.855 ms
...
$  ping service.host.lan
ping: bad address 'service.host.lan'

What could be wrong? Thanks for any help

list address '/host.lan/192.168.1.10' will resolve host.lan and all its subdomains to 192.168.1.10.

Thanks for you reply. I changed the dnsmasq config. However, everything seems the same: I can't reach the subdomains from the router (I get a bad address error). When pinging the root domain (host.lan) it works.

Did you restart the service?

Yes. I even restarted the whole router. I found a solution by adding the FQDN of the services as Hostnames:

config domain
        option ip '192.168.1.10'
        option name 'service1.host.lan

config domain
        option ip '192.168.1.10'
        option name 'service2.host.lan

Thanks for your help!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.