User Tools

Site Tools

Enable the .LAN Domain

Here is an old method that can be used on the Turris Omnia, for Knot to resolve the names announced by the machines on the LAN.

For most users, the following explanations are no longer relevant, as the reForis interface now offers the possibility, via a checkbox, to have Knot resolve the names announced by the machines on the LAN during their DHCP request.

However, the following explanations are of interest in two cases:

  • In case 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. Then you need to go 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'


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(''), policy.todnames({'lan',''})))
table.insert(policy.rules, 1, lan_rule)