Actually nslookup does not use the hosts or the cache file it goes straight to DNS.
It will use whatever DNS server the OS uses or one that you specify in the command.
EG: use googles dns server
nslookup example.com 8.8.8.8
Most browsers (probably all) cache the IP of sites,
request web page in browser >not found> check browser cache >not found> check hosts file >not found> check OS cache >not found> send request to the DNS server specified in the OS networking config.
I went a bit farther and run my own DNS server using Pihole, I made two of them for redundancy
https://github.com/pi-hole/pi-hole
https://discourse.pi-hole.net/
https://pi-hole.net/
I just looked up Redit's ttl it;s set to 3 hours using nslookup -debug www.reddit.com
ANSWERS:
-> www.reddit.com
canonical name = reddit.map.fastly.net
ttl = 10794 (2 hours 59 mins 54 secs)
-> reddit.map.fastly.net
internet address = 151.101.1.140
ttl =...
That should work, Have you tried using one space instead of tab
Edit: not sure if the hosts file understands the second entry without a TLD (.com .org or similar)
yes I know you can add more than one domain I think it;s around 8 if memory serves me right
Also if you just saved your hosts file changes and try to go to the site your browser may have cached the IP if that's the case just mash on the keyboard a bunch of times pressing ctrl+r or you could wait for the TTL to expire in which most cases nowadays is probably 5 min max.
Another thing I...
The only things I can think of is did you add a port at the end (0.0.0.0 www.example.com:8080) because that will not work either or you did not save it with admin privilege's .
Or maybe Microsoft broke it for good this time, one of these day's I will probably test myself.
If you could post...
What url are you adding to your hosts file, Hosts file only deals with domain names any else will not work
EG: this will not work
0.0.0.0 http://exampe.com/somethig
0.0.0.0 example.com/something
0.0.0.0 www.example.com:8080
EG: this will work
0.0.0.0 example.com
0.0.0.0 www.example.com
I did...
That sounds pretty cool, Do you happen to know the commands that that I would need in a bash terminal on my Android phone to cause the plane I am traveling in to make it dive from 60,000 feet to around 100 feet.
My ISP is Rogers in Canada I'm guessing some other user was up to something, I will end up waiting till the 2023 version comes out and try again, I'm in no rush