Change DNS for one Host in official TLD

Hi,

using kresd and dnsmasq for my dns resolving.
dnsmasq is needed for local resolving see https://doc.turris.cz/doc/en/public/enable_dot_lan_domain

Now for testing a want to resolve test.net local to a different ip. like a entry in the hosts file at the clients. how can i manage this? are kresd hints able to do this?

BR

mode

  • forwarding to dnsmasq shouldn’t be needed anymore to get *.lan. Just use the defaults and tick the checkbox in the Foris web UI.
  • hosts-like files wiki article.

What about reverse lookups. If I don’t comment out ‘168.192.in-addr.arpa.’ in /usr/lib/kdns_modules/policy.lua, I can’t reverse look up any of my local hosts. Can I rely on kresd to do those lookups for me?

1 Like

It’s IETF-mandated policy is to block these by default, and unluckily for the hints case, policy module currently takes precedence before the hints module.

You can “work around” that by enabling the suffixes explicitly, e.g. for IPv4 192.168.1.*:

policy.add(policy.suffix(policy.PASS, { todname('1.168.192.in-addr.arpa') }))

Adding config lines is explained around the link I posted.

perfect - thanks. works like a charm :slight_smile: