Ok I’ve found better way. HomeAssistant advertize its service via mDNS.
So I just used homeassistant.local and mDNS doesnt traverse pass network segment so its going to work in each network. But well hacky scripts with hardcoded values is not the way to go for Knot Resolver.
2 Likes