Insomnia: [Bug] hosts lookup not refreshed

Created on 29 May 2019  路  4Comments  路  Source: Kong/insomnia

  • Insomnia Version: 6.5.3
  • Operating System: Windows 10 1903 (Issue was present on 1809 as well)

Details


Changes in C:\Windows\System32\drivers\etc\hosts (/etc/hosts) don't seem to reflect until a restart of insomnia, however the same is not an issue on Ubuntu (18.04). Some services we develop resolve some information from the domain name, for which we need to point that domain to localhost for testing.

Eg.
Annotation 2019-05-29 100455

Most helpful comment

It might be because Insomnia reuses network connections (well, libcurl does)when it can. Do you know if it will eventually refreshes? It looks like libcurl's default DNS cache is set to 60 seconds.

All 4 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.

It might be because Insomnia reuses network connections (well, libcurl does)when it can. Do you know if it will eventually refreshes? It looks like libcurl's default DNS cache is set to 60 seconds.

That seems to do the trick, lookup is successful after about 60 seconds. Thanks!

It might be because Insomnia reuses network connections (well, libcurl does)when it can. Do you know if it will eventually refreshes? It looks like libcurl's default DNS cache is set to 60 seconds.

@gschier Add request header Connection: close can disable connection reuse. Do you know how to disable libcurl's DNS cache in insominia?

I use same domain name in different environments (e.g. QA/PRE/PROD). Disable cache can really helps in switch env scenario.

Was this page helpful?
0 / 5 - 0 ratings