example RPC API for dns.