Feature request: resolve a host name to an IP address

If a machine mylaptop.local. advertises a service My Service._test._tcp.local., then I can:

However, I can't see a straightforward way to ask "what is the address of mylaptop.local.?" through high-level APIs: combining add_listener() and send() seems to be the only way?