User Tools

Site Tools


Enable the .LAN Domain

Below is one old way for knot-resolver on Omnia. Currently you have a simpler way via a checkbox in Foris 8-) (Unless you need CNAME support for your .LAN domain. In that case, there's no other option than this. In case of PTR records for your LAN IP addresses, you need this way too).


Enables the .LAN domain name on your LAN.

The router can be reach by the <hostname>.lan value specified in the System Properties:

Hosts (computers) listed in the Active DHCP Leases section of the DHCP and DNS settings page can be reached by <hostname>.lan:

Edit the /etc/config/dhcp file:

Change this line in the dnsmasq section from:

option port '53'

to:

option port '5353'

Add the following link to the kresd section of the /etc/config/resolver file:

option include_config '/etc/kresd/custom.conf'

Add the following text to the /etc/kresd/custom.conf file:

The @5353 should match the port listed in the dhcp file.

local lan_rule = policy.add(policy.suffix(policy.STUB('127.0.0.1@5353'), policy.todnames({'lan','168.192.in-addr.arpa'})))
policy.del(lan_rule.id)
table.insert(policy.rules, 1, lan_rule)