Page 1 of 1

Full domain name required for getaddrinfo?

Posted: Thu Sep 05, 2019 1:50 pm
by sn81
Hi,

I'm currently experimenting with some ESP8266 based boards.

The boards connect to my network and receive their addresses via dhcp, pointing the DNS to my local DNS server.

When I try to resolve some hostname within my network, e.g., "server.my.site" using getaddrinfo, I need to specify the full domain name of the host (in this example "server.my.site") to get its IP address. Using only the hostname "server" does not work. Is there some option I am missing?

Would it be possible to determine the domain name from the DNS server, so that I at least can append it automatically to my getaddrinfo request?

Thanks!
Stefan

Re: Full domain name required for getaddrinfo?

Posted: Thu Sep 12, 2019 4:12 pm
by smurf
The default domain is passed to you with DHCP. µPy doesn't seem to handle that. Open an issue …