|  | | |
03 Sep 2012
|
#1 | | Microsoft Windows 7 Home Premium 64-bit SP1 Toronto, ON, Canada |
Hosts File Hey,
I was wondering, is there any internet performance gain if you put a commonly used website's IP (like Google) in your Hosts file, so it doesn't need to ask a DNS server? I mean, because I have 30 websites I go on at least 10 times each day, and it lags when I open all of them
Thanks! | My System Specs |
| Computer type PC/Desktop System Manufacturer/Model Number Hewlett-Packard Pavilion g6 Notebook PC OS Microsoft Windows 7 Home Premium 64-bit SP1 CPU AMD Phenom(tm) II P960 Quad-Core Processor Motherboard Hewlett-Packard 1697 Memory 4GB DIMM 1066Mhz Micron Technology, 2GB DIMM 1066Mhz Ramaxel Graphics Card AMD M880G with ATI Mobility Radeon HD 4250 Sound Card AMD HDMI Output Monitor(s) Displays Philips 40PFL4707/F7 40" LED TV Screen Resolution 1680x1050 Keyboard Dell SK-8115 Mouse Logitech M325, Synaptics TouchPad Hard Drives Hitachi HTS547575A9E384 SATA Disk Device (698.64GB) Internet Speed Rogers Express (25Mbps Down, 2Mbps Up) Other Info Optical Drive: HP CDDVDW TS-L633R
Network Interfaces: Realtek PCIe FE Family Controller, Ralink RT5390 802.11b/g/n WiFi Adapter
BIOS: Default System BIOS |
03 Sep 2012
|
#2 | | W 7 64-bit Ultimate The Lowcountry |
Perhaps I'm not understanding your question, the Hosts File blocks web-sites. Hosts File : Use in Windows 7 / Vista | My System Specs | | System Manufacturer/Model Number * BFK Customs * OS W 7 64-bit Ultimate CPU Intel Q9550 Yorkfield Motherboard ASUS P5Q Pro Memory 8GB Dominator 8500C5D Graphics Card ATI : XFX 5870 Sound Card Realtek HD Audio 7-1 Monitor(s) Displays 1x 47" LCD HDMI & 3x 26" LCD HDMI Screen Resolution 1920x1080P & 1920x1200 Keyboard Microsoft 500 Mouse Razer Diamondback 3G PSU Corsair 620HX Case Cooler Master RC-690 Cooling Tuniq Tower 120, 2x 140mm and 3x 120mm case fans Hard Drives 1x 80GB Intel X25-M G2 SSD : 1x 500GB & 1x 640GB WD Caviar Black(s) Internet Speed 14 Mb/s Other Info 1x Koutech 3Gb/s SATA HDD Hot Swap Rack |
03 Sep 2012
|
#3 | | Microsoft Windows 7 Home Premium 64-bit SP1 Toronto, ON, Canada |
Nope. Many people use the Hosts file to block websites by redirecting them to 127.0.0.1, which redirects to localhost, going nowhere.
When the browser contacts a DNS server to find the IP, I'm using the Hosts file to remove that action. Google's IP is 173.194.75.94. I can enter "google.ca 173.194.75.94" in the Hosts file, and my browser won't need to contact a DNS server to fetch the IP, thus speeding up the loading process.
However, this is just an assumption. I need this to be verified.
Also, I know that there is the risk of a website's IP being changed
But thanks for helping. | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Hewlett-Packard Pavilion g6 Notebook PC OS Microsoft Windows 7 Home Premium 64-bit SP1 CPU AMD Phenom(tm) II P960 Quad-Core Processor Motherboard Hewlett-Packard 1697 Memory 4GB DIMM 1066Mhz Micron Technology, 2GB DIMM 1066Mhz Ramaxel Graphics Card AMD M880G with ATI Mobility Radeon HD 4250 Sound Card AMD HDMI Output Monitor(s) Displays Philips 40PFL4707/F7 40" LED TV Screen Resolution 1680x1050 Keyboard Dell SK-8115 Mouse Logitech M325, Synaptics TouchPad Hard Drives Hitachi HTS547575A9E384 SATA Disk Device (698.64GB) Internet Speed Rogers Express (25Mbps Down, 2Mbps Up) Other Info Optical Drive: HP CDDVDW TS-L633R
Network Interfaces: Realtek PCIe FE Family Controller, Ralink RT5390 802.11b/g/n WiFi Adapter
BIOS: Default System BIOS |
03 Sep 2012
|
#4 | | Microsoft Windows 7 Home Premium 64-bit SP1 Toronto, ON, Canada |
See, Wikipedia says that Hosts files are used to "map hostnames to IP addresses". It can be used to map any website to a non-functioning IP address, in this case 127.0.0.0, but it can also be used to map the proper address | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Hewlett-Packard Pavilion g6 Notebook PC OS Microsoft Windows 7 Home Premium 64-bit SP1 CPU AMD Phenom(tm) II P960 Quad-Core Processor Motherboard Hewlett-Packard 1697 Memory 4GB DIMM 1066Mhz Micron Technology, 2GB DIMM 1066Mhz Ramaxel Graphics Card AMD M880G with ATI Mobility Radeon HD 4250 Sound Card AMD HDMI Output Monitor(s) Displays Philips 40PFL4707/F7 40" LED TV Screen Resolution 1680x1050 Keyboard Dell SK-8115 Mouse Logitech M325, Synaptics TouchPad Hard Drives Hitachi HTS547575A9E384 SATA Disk Device (698.64GB) Internet Speed Rogers Express (25Mbps Down, 2Mbps Up) Other Info Optical Drive: HP CDDVDW TS-L633R
Network Interfaces: Realtek PCIe FE Family Controller, Ralink RT5390 802.11b/g/n WiFi Adapter
BIOS: Default System BIOS |
03 Sep 2012
|
#5 | | W 7 64-bit Ultimate The Lowcountry |
Helping is my pleasure mate, I learn that way too.
I'm not sure if using the Hosts File that way would work for what you want or not, though one thing I know is some sites have sever IP and that may cause issues and make it more trouble than it's worth. | My System Specs | | System Manufacturer/Model Number * BFK Customs * OS W 7 64-bit Ultimate CPU Intel Q9550 Yorkfield Motherboard ASUS P5Q Pro Memory 8GB Dominator 8500C5D Graphics Card ATI : XFX 5870 Sound Card Realtek HD Audio 7-1 Monitor(s) Displays 1x 47" LCD HDMI & 3x 26" LCD HDMI Screen Resolution 1920x1080P & 1920x1200 Keyboard Microsoft 500 Mouse Razer Diamondback 3G PSU Corsair 620HX Case Cooler Master RC-690 Cooling Tuniq Tower 120, 2x 140mm and 3x 120mm case fans Hard Drives 1x 80GB Intel X25-M G2 SSD : 1x 500GB & 1x 640GB WD Caviar Black(s) Internet Speed 14 Mb/s Other Info 1x Koutech 3Gb/s SATA HDD Hot Swap Rack |
03 Sep 2012
|
#6 | | Microsoft Windows 7 Home Premium 64-bit SP1 Toronto, ON, Canada |
Yeah...that's slightly problematic... | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Hewlett-Packard Pavilion g6 Notebook PC OS Microsoft Windows 7 Home Premium 64-bit SP1 CPU AMD Phenom(tm) II P960 Quad-Core Processor Motherboard Hewlett-Packard 1697 Memory 4GB DIMM 1066Mhz Micron Technology, 2GB DIMM 1066Mhz Ramaxel Graphics Card AMD M880G with ATI Mobility Radeon HD 4250 Sound Card AMD HDMI Output Monitor(s) Displays Philips 40PFL4707/F7 40" LED TV Screen Resolution 1680x1050 Keyboard Dell SK-8115 Mouse Logitech M325, Synaptics TouchPad Hard Drives Hitachi HTS547575A9E384 SATA Disk Device (698.64GB) Internet Speed Rogers Express (25Mbps Down, 2Mbps Up) Other Info Optical Drive: HP CDDVDW TS-L633R
Network Interfaces: Realtek PCIe FE Family Controller, Ralink RT5390 802.11b/g/n WiFi Adapter
BIOS: Default System BIOS |
03 Sep 2012
|
#7 | | MS Windows 7 Ultimate 64-bit SP1 Somewhere in the middle of Desert :-) |
Instead of tinkering with hosts file, save the frequently used websites in to bookmarks in your browser and change the url to it's IP address in the bookmark properties. But I don't think you're going to save a lot of time in opening the websites.
You would be better off requesting your ISP for another DNS server's addresses. | My System Specs | | System Manufacturer/Model Number Toshiba Satellite P775-S7232 OS MS Windows 7 Ultimate 64-bit SP1 CPU i5-2410M 2.3GHz (2.9GHz Turbo-Boost) Sandy Bridge 32nm Motherboard Toshiba PHRAA ver. PSBY1U-00F003 Memory 4GB+4GB Samsung DDR3 PC3-10700 (1333 MHz) Graphics Card Video Intel(R) HD Graphics Family, 1696MB available memory Sound Card Realtek High Definition Audio version=6.0.1.6323 Monitor(s) Displays 17.3 " Trubrite TFT LCD, LED Backlit Screen Resolution 1600x900 32 bit, Native support for 720P content Keyboard Premium Raised Tile keyboard Mouse Logitech M215 wireless mouse PSU Toshiba AC/DC Adapter Case Notebook Cooling Built-in Fan Hard Drives TOSHIBA MK6476GSXN
580.614 [GB] partitioned C: 80GB and D: 500GB with hidden recovery partitons.
Spare bay for 2nd HDD but no SATA connector :-( Internet Speed Not fast enough Other Info Built-in Harman Kardon speakers with Dolby Advanced Audio, Waves MaxxAudio® 3. HDMI, 1xUSB3+3xUSB2 ports, WebCam, Battery life 4hrs 11mins, 4GB Readyboost SDHC card, WD My Book Essential Ext HDDs 2 TB, 2x1TB, My Passport SE 1TB and WDTV 1st Gen for Multimedia playing on a Sony Wega 32" LCD.
Recent addition to my toys are Asus Transformer Pad TF300T with 32GB onboard sd card + 32GB microsd card. |
03 Sep 2012
|
#8 | | |
Windows already caches DNS records when you use them. So no adding them to the hosts file will not help any.
Open a Command Prompt and type "ipconfig /displaydns" that will show you all the entries that are cached. | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Alienware Aurora ALX R4 OS Windows 7 x64 (SP1) CPU Intel Core i7-3930K (3.2GHz, Turbo 4GHz) Motherboard Alienware Aurora-R4 x79 Memory 4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz) Graphics Card Nvidia Geforce GTX 690 (Stock) Sound Card RealTek Integrated Audio Monitor(s) Displays Dell UltraSharp U3011 Screen Resolution 2560x1600 PSU 875W Some Dell PSU <.< Hard Drives Samsung P830 256 GB, WD Raptor 150GB, 2x 1TB HDDs Other Info Dell Inspiron Mini 10v (Intel Atom N270 1.6 GHz; 1GB; Windows 7 Ultimate) |
03 Sep 2012
|
#9 | | Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Linux Mint 14 MATE (64 bit) Adelaide |
You can but ... 
Quote: Originally Posted by Injust Hey,
I was wondering, is there any internet performance gain if you put a commonly used website's IP (like Google) in your Hosts file, so it doesn't need to ask a DNS server? I mean, because I have 30 websites I go on at least 10 times each day, and it lags when I open all of them  You can put any sites you want in your Hosts file, but I'm not sure how much performance benefit there would be. 
Quote: Originally Posted by Bare Foot Kid Perhaps I'm not understanding your question, the Hosts File blocks web-sites. IIRC, before DNS servers you had to put sites in your Hosts file (for name resolution).
You can use it to: - Replace a DNS request
- Block a website.
The entries don't even have to be "real" sites.
In my networking course, we had to add a "fake" site the Hosts file, because the TAFE campus doesn't allow students to modify their DNS server.
The "fake" site was a dummy website that we had created on a virtual server. 
Quote: Originally Posted by logicearth Windows already caches DNS records when you use them. So no adding them to the hosts file will not help any.
Open a Command Prompt and type "ipconfig /displaydns" that will show you all the entries that are cached. It would stop the first DNS request being sent though (i.e. they won't be forgotten when you shutdown). | My System Specs | | System Manufacturer/Model Number n/a OS Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Linux Mint 14 MATE (64 bit) CPU AMD Phenom II x6 1055T, 2.8 GHz Motherboard ASRock 880GMH-LE/USB3 Memory 8GB DDR3 1333 G-Skill Ares F3-1333C9D-8GAO (4GB x 2) Graphics Card ATI Radeon HD6450 Sound Card Realtek? Monitor(s) Displays Samsung S23B350 Screen Resolution 1920x1080 Mouse Wired Optical Case Tower Hard Drives Western Digital 1 TB (SATA), Western Digital 1.5 TB (SATA), Western Digital 2 TB (SATA) Internet Speed DSL Other Info Ubuntu 10.04 (64 bit) replaced with Linux Mint 14 MATE (64 bit) - 2013-01-14
RAM & Graphics Card Upgraded - 2013-01-13
Monitor Upgraded - 2012-04-20
System Upgraded - 2011-05-21, 2010-07-14
HDD Upgraded - 2010-08-11, 2011-08-24 |
04 Sep 2012
|
#10 | | Microsoft Windows 7 Home Premium 64-bit SP1 Toronto, ON, Canada |

Quote: Originally Posted by logicearth Windows already caches DNS records when you use them. So no adding them to the hosts file will not help any.
Open a Command Prompt and type "ipconfig /displaydns" that will show you all the entries that are cached. BTW, when I enter ipconfig /displaydns in CMD, this comes up :P | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Hewlett-Packard Pavilion g6 Notebook PC OS Microsoft Windows 7 Home Premium 64-bit SP1 CPU AMD Phenom(tm) II P960 Quad-Core Processor Motherboard Hewlett-Packard 1697 Memory 4GB DIMM 1066Mhz Micron Technology, 2GB DIMM 1066Mhz Ramaxel Graphics Card AMD M880G with ATI Mobility Radeon HD 4250 Sound Card AMD HDMI Output Monitor(s) Displays Philips 40PFL4707/F7 40" LED TV Screen Resolution 1680x1050 Keyboard Dell SK-8115 Mouse Logitech M325, Synaptics TouchPad Hard Drives Hitachi HTS547575A9E384 SATA Disk Device (698.64GB) Internet Speed Rogers Express (25Mbps Down, 2Mbps Up) Other Info Optical Drive: HP CDDVDW TS-L633R
Network Interfaces: Realtek PCIe FE Family Controller, Ralink RT5390 802.11b/g/n WiFi Adapter
BIOS: Default System BIOS All times are GMT -5. The time now is 11:46 AM. | |