What is a hosts file?

This is a recommends products dialog
Top Suggestions
Starting at
View All >
Language
French
English
ไทย
German
繁體中文
Country
Hi
All
Sign In / Create Account
language Selector,${0} is Selected
Register & Shop at Lenovo Pro
Register at Education Store

Pro Tier Benefits

• Save up to an extra 5% on Think everyday pricing
• Spend PHP$300,000, advance to Plus Tier with increased benefits

Plus Tier Benefits

• Save up to an extra 8% on Think everyday pricing
• Spend PHP$1,000,000, advance for free to Elite Tier with increased benefits
• Take advantage of flexible payment options with TruScale Device as a Service.

Elite Tier Benefits

• Save up to an extra 12% on Think everyday pricing
• Take advantage of flexible payment options with
TruScale Device as a Service.
Reseller Benefits
• Access to Lenovo's full product portfolio
• Configure and Purchase at prices better than Lenovo.com
View All Details >
more to reach
PRO Plus
PRO Elite
Congratulations, you have reached Elite Status!
Pro for Business
Delete icon Remove icon Add icon Reload icon
TEMPORARILY UNAVAILABLE
DISCONTINUED
Temporary Unavailable
Cooming Soon!
. Additional units will be charged at the non-eCoupon price. Purchase additional now
We're sorry, the maximum quantity you are able to buy at this amazing eCoupon price is
Sign in or Create an Account to Save Your Cart!
Sign in or Create an Account to Join Rewards
View Cart
Wow, your cart is empty!
Remove
items in cart
Fill it in with great deals
Some items in your cart are no longer available. Please visit cart for more details.
has been deleted
Please review your cart as items have changed.
of
Contains Add-ons
Proceed to Checkout
Yes
No
Popular Searches
What are you looking for today ?
Trending
Recent Searches
Hamburger Menu
skip to main content
{"arrowColor":"#000000","backgroundColor":"#e6f4fa","sideMsg":"","data":[{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Page58546bb3-ee5d-47ff-9248-41494cbf9607","language":{"en":"","en_ph":"%3Cp%3E%3Cstrong%3E%3C%2Fstrong%3E%3Cstrong%3E%3C%2Fstrong%3E%3Cstrong%3E%3C%2Fstrong%3EPurchase%20any%20PC%20with%20your%20Lenovo%20Pro%20Business%20account%20and%20enjoy%20up%20to%2020%25%20off%20your%20next%20purchase%20of%20selected%20accessories.%3C%2Fp%3E%3Cp%3E%3Ca%20href%3D%22https%3A%2F%2Faccount.lenovo.com%2Fph%2Flenovopro%2Fen%2Fsmbaccount%2Fgatekeeper%2Fshowpage%3FipromoID%3Dhellobar_01_lpro%22%20target%3D%22_self%22%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3Cstrong%3EJoin%20Lenovo%20Pro%20FREE%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E"},"id":"Page58546bb3-ee5d-47ff-9248-41494cbf9607"},"gInfo":""},{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Pagef9eacebb-787a-4dab-b60b-9209a046b91c","language":{"en":"","en_ph":"%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3Cstrong%3E%3C%2Fstrong%3E%3C%2Fspan%3E%3Cstrong%3E%3C%2Fstrong%3E%3Cstrong%3ELenovo%20Education%3C%2Fstrong%3E%20%7C%20Register%20to%20unlock%20up%20to%20PHP5%2C800%20welcome%20discount%20%2B%20up%20to%208%25%20EXTRA%20savings%20with%20Lenovo%20Education.%26nbsp%3B%3C%2Fp%3E%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Ca%20href%3D%22%2Fd%2Fschool-from-home%2F%3FipromoID%3DHellobar_02_edu_shop_now%22%20target%3D%22_self%22%20textvalue%3D%22Shop%20Now%22%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3Cstrong%3EShop%20Now%3C%2Fstrong%3E%3Cstrong%3E%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%20%7C%20%3Ca%20href%3D%22https%3A%2F%2Fwww.lenovo.com%2Fph%2Fedu%2Fphedu%2Fen%2Flogin%2Fedu%2F%3FipromoID%3Dhellobar_02_EDU_login%22%20target%3D%22_self%22%20textvalue%3D%22Sign%20Up%20%2F%20Sign%20In%22%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3Cstrong%3ESign%20Up%20%2F%20Sign%20In%3C%2Fstrong%3E%3Cstrong%3E%3C%2Fstrong%3E%3Cstrong%3E%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E"},"id":"Pagef9eacebb-787a-4dab-b60b-9209a046b91c"},"gInfo":""},{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Page3a8c66f7-faad-4ab8-9a7d-70a9b73a613f","language":{"en":"","en_ph":"%3Cp%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%20color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3C%2Fspan%3E%3C%2Fp%3E%3Cp%3EYoga%20Pro%207%20(14%26%2339%3B%26%2339%3B%2C%20Gen%209)%7CCreate%20epic%20digital%20content%20with%20the%20AMD%20Ryzen%E2%84%A2%20AI%209%20processor%2C%20stunning%2014.5%E2%80%B3%202.8K%20OLED%20display.%26nbsp%3B%20%26nbsp%3B%3Ca%20href%3D%22%2Fp%2Flaptops%2Fyoga%2Fyoga-slim-series%2Flenovo-yoga-pro-7-gen-9-14-inch-amd%2Flen101y0050%3FipromoID%3Dhellobar_Yoga_Pro_7_Gen_9%20_14_AMD%22%20target%3D%22_self%22%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3Cstrong%3EShop%20Now%3C%2Fstrong%3E%3Cstrong%3E%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%26nbsp%3B%20%26nbsp%3B%3Ca%20href%3D%22%2Fd%2Fdeals-and-coupons%2Fnew-arrivals%2F%3FipromoID%3Dhellobar_New_Arrivals%22%20target%3D%22_self%22%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3Cstrong%3EAll%20New%20Arrivals%3C%2Fstrong%3E%3C%2Fa%3E%3C%2Fp%3E"},"id":"Page3a8c66f7-faad-4ab8-9a7d-70a9b73a613f"},"gInfo":""},{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Pageae895a56-939f-4e30-bd52-a78d36cca7bf","language":{"en":"","en_ph":"%3Cp%3EEnjoy%20Exclusive%20Discounts%20when%20you%20pay%20with%20BPI%20Online!%26nbsp%3B%26nbsp%3B%3Ca%20href%3D%22%2Fd%2Fdeals%2Fbpi%2F%3FipromoID%3Dhellobar_04_BPI%22%20target%3D%22_self%22%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3Cstrong%3EALL%20Deals%3C%2Fstrong%3E%3Cstrong%3E%3C%2Fstrong%3E%3Cstrong%3E%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%20%7C%20Free%20Quickship%20Delivery%20on%20selected%26nbsp%3B%20products.%26nbsp%3B%26nbsp%3B%3Ca%20href%3D%22%2Fd%2Fdeals%2Fquick-ship%2F%3FipromoID%3Dhellobar_04_QS%22%20target%3D%22_self%22%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3Cstrong%3EQuickship%3C%2Fstrong%3E%3Cstrong%3E%3C%2Fstrong%3E%3Cstrong%3E%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E.%3C%2Fp%3E"},"id":"Pageae895a56-939f-4e30-bd52-a78d36cca7bf"},"gInfo":""}],"autoRun":true,"displayTerminal":"pc,tablet,mobile"}


What is a hosts file?

The hosts file is a simple text file on your computer that plays a crucial role in networking. It acts as a local DNS (Domain Name System) resolver, mapping domain names to IP addresses. In other words, it helps your computer find the correct IP address when you enter a website's domain name in your browser. It's like a phonebook for the internet, ensuring smooth communication between your computer and websites you visit.

Why would I need to modify my hosts file?

Modifying the hosts file can be useful in various scenarios. For example, if you want to block access to certain websites on your computer, you can add those website domains to your hosts file and map them to a non-existent IP address. It can also be used for local development purposes, where you want to create custom domain mappings for testing your applications.

Can I use the hosts file to block websites?

Yes, you can use the hosts file to block websites by redirecting their domain names to a non-existent IP address. By adding an entry in the Hosts file that maps a specific website's domain to an invalid IP address like 127.0.0.1, whenever you try to access that website, your computer will fail to establish a connection.

Can the hosts file be used for local development?

Yes, the hosts file is commonly used for local development purposes. For instance, if you are working on a web application and need to test it using a custom domain name, you can map that domain to your local host IP address (usually 127.0.0.1) in the Hosts file.

Can I use the hosts file to speed up website access?

No, the hosts file is not designed to speed up website access. It primarily serves as a DNS resolver, mapping domain names to IP addresses. When you type a uniform resource locator (URL) into your browser, it checks the hosts file first before querying a DNS server to resolve the IP address associated with that domain. However, caching mechanisms and content delivery networks (CDNs) are typically used to improve website performance by reducing latency and optimizing content delivery.

Can I use the hosts file to redirect specific pages on a website?

No, the hosts file cannot be used to redirect specific pages on a website. It can only redirect entire domain names to a different IP address.

Can I use the hosts file to block websites on mobile devices?

Yes, you can modify the hosts file on rooted or jailbroken mobile devices to block access to specific websites. However, it requires technical expertise and may void your device's warranty.

Can I use the hosts file to bypass DNS censorship?

Yes, modifying the hosts file can be used as a workaround to access blocked websites in some cases. By mapping the blocked website's IP address to its domain name in the Hosts file, you can bypass DNS-based censorship.

Can I use the hosts file to set up a local development environment?

Yes, the hosts file is commonly used to set up local development environments. By mapping domain names to local IP addresses, developers can emulate website behavior without affecting the live site.

Can I use the hosts file to improve online privacy?

While the hosts file can be used to block certain advertisements and tracking domains, it is not a comprehensive solution for improving online privacy. To enhance privacy, it is recommended to use browser extensions or privacy-focused software.

Can I use the hosts file to block ads on my mobile device?

Yes, if your mobile device is rooted or jailbroken, you can modify the hosts file to block ads. However, it is recommended to use dedicated ad-blocking software or browser extensions for better performance and ease of use.

Is it possible to use wildcards in the hosts file?

No, the hosts file does not support the use of wildcards. Each entry in the hosts file must specify a specific domain name and its corresponding IP address.

How can I block websites across multiple devices on a network using the hosts file?

You cannot block websites across multiple devices on a network using the hosts file alone. The hosts file only affects the local machine where the modifications are made. To block websites on a network level, you would need to employ other methods such as network-wide ad-blocking or content filtering solutions.

How can I backup the hosts file?

You can backup the hosts file by simply making a copy of it and storing it in a safe location. This ensures that you have a backup in case anything goes wrong during modifications.

How do I flush the DNS cache after modifying the hosts file?

To flush the DNS cache after modifying the hosts file, you can open the command prompt (CMD) as an administrator and run the command "ipconfig /flushdns". This clears the DNS cache and forces the system to use the updated Hosts file.

Does the hosts file work for both IPv4 and IPv6 addresses?

Yes, the hosts file works for both IPv4 and IPv6 addresses. You can add entries for both types of addresses to redirect or map domain names.

What is the default location of the hosts file on Windows?

The default location of the hosts file on Windows is "C:\Windows\System32\drivers\etc". It is a plain text file named "hosts" with no file extension.

What is the purpose of the hosts file in networking?

The hosts file is used to map domain names to IP addresses on a local machine. It allows users to bypass DNS resolutions and directly specify IP address mappings for specific domains.

Is it possible to use the hosts file to redirect a website to a different port?

No, the hosts file cannot be used to redirect a website to a different port. It can only map domain names to IP addresses, not specific ports.

What is the difference between the hosts file and DNS caching?

The hosts file provides static mappings of domain names to IP addresses on a local machine, while DNS caching involves storing resolved DNS records for faster subsequent access. The hosts file takes precedence over DNS caching when resolving domain names locally.

What is the maximum file size limit for the hosts file?

The maximum file size limit for the hosts file depends on the operating system. In most cases, it is recommended to keep the file size relatively small, as excessively large hosts files can impact system performance.

Which file permissions should be set for the hosts file?

The hosts file should have read and write permissions for the administrator or root user, and read-only permissions for other users. This helps maintain security and prevent unauthorized modifications.

{"pageComponentDataId":"cf8feb0814999-4556-a405-f072a40555e8","pageComponentId":"cf8feb0814999-4556-a405-f072a40555e8","isAssociatedRelease":"true","pageComponentDataLangCode":"en_ph","configData":{"jumpType":"currentTab","headlineColor":"black","displayNumber":"","styleMode":"vertical","miniCardHoMode":"2","headline":"","products":[{"number":{"t_id":"len101t0102","language":{"en":"","en_ph":"len101t0102"},"id":"Page9d6b9ba9-68b5-4975-8f87-a5e5a707955a"}},{"number":{"t_id":"len101t0104","language":{"en":"","en_ph":"len101t0104"},"id":"Pageecbd020a-1f52-4e42-8af7-4edc23bd0496"}},{"number":{"t_id":"len101t0081","language":{"en":"","en_ph":"len101t0081"},"id":"Pagebf090bae-cc7f-459b-84e1-73c29691ad7b"}},{"number":{"t_id":"len101g0036","language":{"en":"","en_ph":"len101g0036"},"id":"Page264fb65d-32b0-4d23-809b-4b17f4334e2f"}}]},"urlPrefix":"AAAAAAALAAAB","title":"ph-glossary-right-blue-boxes-fragment","pageId":"e29c6984-50e1-4185-9915-ec2a8d70fed3","urlEdit":0,"uri":"/FragmentDirectory/glossary/glossary-right-blue-boxes-fragment.frag","pageComponentUuid":"cf8feb0814999-4556-a405-f072a40555e8"}
coming coming
Starting at
List Price
Est Value
Web Price:
List Price
Est Value (Estimated Value)
List Price is Lenovo’s estimate of product value based on the industry data, including the prices at which first and third-party retailers and etailers have offered or valued the same or comparable products. Third-party reseller data may not be based on actual sales.
Estimated value is Lenovo’s estimate of product value based on industry data, including the prices at which Lenovo and/or third-party retailers and e-tailers have offered or valued the same or comparable products. Third-party data may not be based on actual sales.
Learn More
See More
See Less
View {0} Model
View {0} Models
shipping.options.for.{0}
Part Number:
Features
See More
See Less
compare
Added!
Great choice!
You may compare up to 4 products per product category (laptops, desktops, etc). Please de-select one to add another.
View Your Comparisons
Add To Cart
Add To Cart
We're sorry,
Products are temporarily unavailable.
Continue Shopping
Learn More
Coming Soon
Featured Product
Featured Products
Oops! No results found. Visit the categories above to find your product.
Save
open in new tab
© 2024 Lenovo. All rights reserved.
© {year} Lenovo. All rights reserved.
Compare  ()
x