Kresd returns NXDOMAIN for local MX records

I have configured kresd to load /etc/hosts. It works, but it returns NXDOMAIN when asked MX records:

# host gw.lan
gw.lan has address 192.168.66.1
Host gw.lan not found: 3(NXDOMAIN)
# host 192.168.66.1
1.66.168.192.in-addr.arpa domain name pointer gw.lan.
# host -t a gw.lan
gw.lan has address 192.168.66.1
# host -t mx gw.lan
Host gw.lan not found: 3(NXDOMAIN)

I believe correct reply should be NODATA. After patch from
/t/kresd-responds-to-hints-with-nxdomain-for-aaaa-requests/8353
the AAAA requests are replied with NODATA but all other requests return NXDOMAIN.

can this be fixed somehow?

1 Like

Follow up on upstream MR: https://gitlab.labs.nic.cz/knot/knot-resolver/-/merge_requests/1005

Fix was merged to kresd upstream and will appear in next release. Thank you for reporting this!