Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> IIRC adding 0.0.0.0 0.0.0.0 to your hosts file helps ?

Yup because typically you're not running a webserver on 0.0.0.0, especially not one that listen on ports 80/443 (say in dev you may be listening to 8080 or something).

I mean: on Linux if you ping 0.0.0.0 (or the shortcut "ping 0"), you'll be getting answers from 127.0.0.1.

But as I don't run a webserver on my machine (except a dev one at times, on a specific port which is not 80/443/8080 etc.), routing domains to 0.0.0.0 still works.

I also used in the past dnsmasq to automatically reply NX_DOMAIN when the browser attempts to resolve 0.0.0.0 but atm I'm not even bothering (maybe I should do it again after reading TFA though).

P.S: it's another aging brain answering, so take this with a grain of salt



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: