Hello,
So the question is how does the emulator figure out DNS - is there something I need to setup there?
Referring to this official documentation Configuring the emulator DNS settings, you could find the recommended way to configure the emulator DNS settings is the following content:
When starting the emulator at the command line, you can also use the
-dns-server <serverList>
option to manually specify the addresses of DNS servers to use, where <serverList> is a comma-separated list of server names or IP addresses. You might find this option useful if you encounter DNS resolution problems in the emulated network (for example, an "Unknown Host error" message that appears when using the web browser).
Due to you have resolved your issue by adding an entry to your laptop's hosts file, you could choose not to manually set up dns.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.