Dynamic local domain
I it would be nice to have support for dynamic local domain in foris. This feature is already implemented.
How to enable it:
It's only available in kresd. check uci get resolver.common.prefered_resolver=="kresd"
Enable dynamic domains uci set resolver.kresd.dynamic_domains=1
restart resolver and dnsmasq
/etc/init.d/resolver restart /etc/init.d/dnsmasq restart
4.
List of connected devices with it's hostname is in /tmp/dhcp.leases
Format of /tmp/dhcp.leases is following (dev is hostname):
1495237277 22:22:22:22:22:22 192.168.1.248 dev ff:b9:22:7b:b2:00:01:00:01:1d:03:87:95:4c:72:b9:22:7b:b2
local domain is set in dhcp config
uci get dhcp.@dnsmasq[0].local (default value is /lan/)
Domain for device is HOSTNAME.DOMAIN (from our example dev.lan)