Anyone using a customised HOSTS file?

Discussion in 'Software' started by bigbazza, Oct 23, 2006.

  1. bigbazza

    bigbazza R.I.P. 14/12/2011 - Good Onya Geek

    In my continuing battle, I have just checked out my HOSTS file in c:\windows\I386 folder.

    Sample is :-
    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host
    127.0.0.1 localhost

    I used to have a much more comprehensive HOSTS file back in the W98SE days.
    Can anyone point me towards a much more effective,expanded HOSTS file.

    Does a bigger HOSTS file really speed up connecting to URL sites?
    Like MG forums, for example.

    Would mere mortals notice the difference?

    How can I transfer DNS cache info into my HOSTS file to save effort.
    Or alternatively, what program converts URL's to HOSTS info like
    rhino.acme.com translates to 102.54.94.97 , for example

    Apparently, from what I have read, the DNScache is wiped each time you shut down your PC. Where is on kept on a PC, a quick search does not show it.

    Bazza
     
  2. bigbazza

    bigbazza R.I.P. 14/12/2011 - Good Onya Geek

  3. Colemanguy

    Colemanguy MajorGeek

    Hey bazza heres some help, let me know if i get over your head.

    To convert hostnames to ips use this command in the command prompt
    nslookup
    then type the hostname and it should give you the ip address.

    Now as far as host files goes read this, really quick. http://accs-net.com/hosts/what_is_hosts.html now the reason I would highly suggest not to go overboard blockign stuff in the hosts files, or assigning your favorites sites is first its not gonna be a huge speed up unless your isp is having major issues with there dns servers and the fact that sites are always possible they may change ips and you may have some trouble in the future accessing a site if you setup many in the hosts file, and may forget that you went in and site that in the hosts. Not sure how to pull up the dns cached info. Hope this helps
     
  4. bigbazza

    bigbazza R.I.P. 14/12/2011 - Good Onya Geek

    thanks Colemanguy. :cool:
    It's easy to get over my head, although I'm 6' 6" :D

    Looks like another good idea in theory, down the tubes.:D
    Check out that link I just posted.

    You can apparently delay the clearing of the DNS cache by a Registry edit from the usual 24 hours to whatever you want. (say 48 hours).

    A bit like Prefetch but for URL's I guess.

    That would probably be the way to go instead of fiddling with the HOSTS file.
    Research, and reading continues. Bazza

    ===

     
    Last edited: Oct 23, 2006
  5. Colemanguy

    Colemanguy MajorGeek

    Yea good in theory, but can cause some odd trouble shooting and problems. Most of the idea behind using a host file is more geared towards preventing/block spyware by not allowing known spyware sites to be reached.
     
  6. TheDoug

    TheDoug MajorGeek

    I was always under the impression that, back in the day, fleshing out your own HOSTS file with favorite URLS was a means to eliminate the extra sometimes seconds a DNS request would take on relatively slow (9600 to 14.4Kbps) dial-up. In the modern day of nearly ubiquitous broadband and reasonably reliable DNS servers, is it still really necessary?
     
  7. bigbazza

    bigbazza R.I.P. 14/12/2011 - Good Onya Geek

    Think I'll try the Registry edit instead. :)
    On page 2 of the article a second Registry edit is recommended to stop b*st*rds from abusing your DNScache. :p It never stops. Bazza

    ===

     
  8. bigbazza

    bigbazza R.I.P. 14/12/2011 - Good Onya Geek

    Missed your reply while I was typing a reply to Colemanguy.;)
    You are probably correct :cool: and it is probably why no one bothers nowadays. Thanks. Bazza

    ===

     
  9. Toni_1947

    Toni_1947 Command Sergeant Major

    I agree...the hosts file is more for blocking than allowing. You should see the list of sites AdFree adds...here's MINE:
    #
     
    Last edited by a moderator: Oct 23, 2006
  10. TheDoug

    TheDoug MajorGeek

    Thanks to the auto link parser, you've inadvertently supplied lots of nice links to bad sites.:(
     
  11. Major Attitude

    Major Attitude Co-Owner MajorGeeks.Com Staff Member

    Sorry, removed your link for a couple reasons.

    First, it leaves bad links clickable in public.
    Second, it blocks some ads we run here that are safe. I dont come to your work and steal, please show me the same courtesy :)

    Im sure you didnt do it intentionally, so thanks in advance.
     
  12. Toni_1947

    Toni_1947 Command Sergeant Major

    Sorry...I sure DIDN'T do it intentionally and I was trying to edit my post and 'erase' the list, but it was already too late. Feel free to delete the whole post, if you like.
     
  13. Major Attitude

    Major Attitude Co-Owner MajorGeeks.Com Staff Member

    Not a problem, as I said, I doubt it was intentional, thanks for understanding :)
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds