Insomnia: Couldn't resolve host name

Created on 20 Nov 2019  路  7Comments  路  Source: Kong/insomnia

On local machine for testing purpose, if the host name is like this demo.localhost:8000 then insomania will throw error like this Couldn't resolve host name.

In Postman, this functionality is there but I like to use Insomania and want to force my Company to buy it but everyone is giving the same excuse that I have mentioned above. I would love to have this functionality in Insomania

needs author input

Most helpful comment

Have you added ciimsdemo.localhost to /etc/hosts? There may also be some more info in the Timeline tab.

All 7 comments

馃憢 Thanks for opening your first issue! If you're reporting a 馃悶 bug, please make sure
you include steps to reproduce it. If you're requesting a feature 馃巵, please provide real
use cases that would benefit. 馃應

To help make this a smooth process, please be sure you have first read the
contributing guidelines.

Can you provide more information on this? Where are you defining the demo.localhost DNS rules on your system? What operating system are you on? What version of Insomnia are you using?

Screenshot from 2019-11-21 23-45-20

@gschier as you can see in the above screenshot, when the host name is ciimsdemo.localhost:8000 then it is throwing error.

I think, there is a check that checks that host_name is a valid host_name or not.

Version 7.0.3
Shell 3.1.13
Node 10.2.0
V8 6.6.346.32
Architecture x64

libcurl/7.61.1 OpenSSL/1.1.0h zlib/1.2.11 nghttp2/1.29.0

OS: Ubuntu 16.04 

Have you added ciimsdemo.localhost to /etc/hosts? There may also be some more info in the Timeline tab.

@gschier Thanks man. After adding sub_domain.localhost to my host file, it resolved the issue.

I'm having the same problem. How i do this? Where i find this file?

C:WindowsSystem32driversetchosts

Was this page helpful?
0 / 5 - 0 ratings