# Error: getaddrinfo ENOTFOUND whena specific URL is used

**URL:** <https://community.postman.com/t/error-getaddrinfo-enotfound-whena-specific-url-is-used/75219>\
**Category:** Help Hub\
**Tags:** tests, header, sendrequest\
**Created:** [February 10, 2025, 6:23pm UTC](https://community.postman.com/t/error-getaddrinfo-enotfound-whena-specific-url-is-used/75219 "2025-02-10T18:23:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adawi](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@adawi](https://community.postman.com/u/adawi)\
**Post date:** [February 10, 2025, 6:23pm UTC](https://community.postman.com/t/error-getaddrinfo-enotfound-whena-specific-url-is-used/75219/1 "2025-02-10T18:23:28Z")

</div>

This drives me crazy.

The Http Server receives requests on a public IP. You must add Host header to the request. a Proxy or something will direct the request to the right website using Host value.

So if you send the server Host: “`example12.com`”, the server returns 404 as expected.

Very important note: There is no DNS record for example12

However, there is a specific subdomain say “`drive.example12.com`”, that causes Postman to fail to send the request and log  
Error: getaddrinfo ENOTFOUND `drive.example12.com`

If you make it` a.example12.com` or [drive.a.com](http://drive.a.com), you will get the beautiful 404 from the server as expected.

If you add `drive.example12.com` to hosts file, it works.

Both` drive.a.com` and `drive.example12.com` do not have DNS record. But, only in the second case, Postman fails to send the request, while obviously it tries to resolve it!!! I knew that because when I put it in the hosts file “resolving it”, Postman works normally.

And yes, I am positive that `a.example12.com` and `drive.a.com` do not resolve and are NOT in the hosts file.

There must be a kind of demon here!!!
