OpenThread border router DNS - use domain directive from resolve.conf

I am using the border router's upstream DNS and $ sudo ot-ctl nat64 state shows that it is active. My Thread child device can resolve hosts like google.com without issue. The upstream DNS uses "iot-edge" as an alias for "pc7.ab.cd.com." However, if my child device does a DNS lookup for "iot-edge" using otDnsClientResolveIp4Address() it gets a "No such name error" as seen below.

Similarly, I get an NXDOMAIN error on my Raspberry Pi border router when I try $ dig iot-edge

However, the Pi is able to resolve "iot-edge" when I add the +search flag. This flag uses the search list defined by the searchlist or domain directive in resolv.conf

What setting am I missing in my border router's NAT64 setup to duplicate the +search flag's functionality and enable these alias lookups? Thank you in advance!

Parents Reply
  • Unfortunately `srp server domain [domain-name]` did not solve my issue. If my Thread child device does a DNS lookup for "example" it gets the following response:

    "Standard query response 0xabcd No such name A example SOA a.root-servers.net"

    However, `$ nslookup example` and `$ dig +search example` on the border router yield the desired IPv4 address. Is there anything else I should be trying or investigating?

Children
Related