ye olde hosts file

Message boards : Number crunching : ye olde hosts file
Message board moderation

To post messages, you must log in.

AuthorMessage
David S
Volunteer tester
Avatar

Send message
Joined: 4 Oct 99
Posts: 18352
Credit: 27,761,924
RAC: 12
United States
Message 1322807 - Posted: 31 Dec 2012, 20:18:39 UTC

I have a hosts file on at least two of my crunchers, telling them to always go to georgem's IP for [whatever the server name is for downloads]. A couple of hours ago, I opened the file and commented out that line on one machine, with no effect. It still has a big pile of stuck downloads. But then I went and did the same on another and faster than I could switch over to Boinc Manager, the downloads were flying through at speeds approaching 60KBps. It had a bigger backlog than the other and got all of them in under ten minutes.

Questions: Is it still a good idea to have a hosts file? Should it point to georgem or to the other one (vader, I think, without checking the SSP)? Is it possible that commenting out that line caused the downloads to speed up? If so, why didn't it work for the other host? Would it work if I restarted the computer or something? (I'd rather not do that.) Or is it just a coincidence that all those downloads suddenly went through right then?

Facts which may help in answering these: the host that sped up runs Win7-64, the one that didn't runs WinXP-Pro 32.

David
Sitting on my butt while others boldly go,
Waiting for a message from a small furry creature from Alpha Centauri.

ID: 1322807 · Report as offensive
Grant (SSSF)
Volunteer tester

Send message
Joined: 19 Aug 99
Posts: 13722
Credit: 208,696,464
RAC: 304
Australia
Message 1322844 - Posted: 31 Dec 2012, 22:16:35 UTC - in response to Message 1322807.  

Would it work if I restarted the computer or something? (I'd rather not do that.)

That or flush the DNS cache.
On the command line,
ipconfig /flushdns
Grant
Darwin NT
ID: 1322844 · Report as offensive
David S
Volunteer tester
Avatar

Send message
Joined: 4 Oct 99
Posts: 18352
Credit: 27,761,924
RAC: 12
United States
Message 1322961 - Posted: 1 Jan 2013, 1:57:29 UTC - in response to Message 1322844.  

Would it work if I restarted the computer or something? (I'd rather not do that.)

That or flush the DNS cache.
On the command line,
ipconfig /flushdns

I was about to say I already tried that, but I double checked. It turns out my antivirus was much more devious than I thought about preventing the edit to the hosts file and the change was never saved. I got around it, flushed again, and the downloads immediately kicked into high gear.

David
Sitting on my butt while others boldly go,
Waiting for a message from a small furry creature from Alpha Centauri.

ID: 1322961 · Report as offensive
Cosmic_Ocean
Avatar

Send message
Joined: 23 Dec 00
Posts: 3027
Credit: 13,516,867
RAC: 13
United States
Message 1322965 - Posted: 1 Jan 2013, 2:21:42 UTC

Yeah, usually changes to the HOSTS file are immediate, but failing that, a /flushdns will do the trick most of the time.

Avira AV makes the HOSTS file read-only (and I assume a lot of the other common mainstream ones do, too).

Before the servers got re-arranged a few months back, we had .13 and .18 to choose from. .13 almost always worked for me and was fast, whilst .18 was super slow and would time-out mid-transfer. So I had .13 in my HOSTS file. After the servers got moved around, I noticed I was having an issue, so I just commented the line out and let DNS do its job and it's been fine since.


I don't really think you need to manually pick the download servers unless you are troubleshooting and trying to diagnose a problem. If one server doesn't work very well, wait less than 5 minutes and DNS will switch over to the other one.
Linux laptop:
record uptime: 1511d 20h 19m (ended due to the power brick giving-up)
ID: 1322965 · Report as offensive

Message boards : Number crunching : ye olde hosts file


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.