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
Host gw.lan not found: 3(NXDOMAIN)
# host domain name pointer gw.lan.
# host -t a gw.lan
gw.lan has address
# host -t mx gw.lan
Host gw.lan not found: 3(NXDOMAIN)

I believe correct reply should be NODATA. After patch from
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:

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