
- #Modify hosts file in windows 8 how to#
- #Modify hosts file in windows 8 full#
- #Modify hosts file in windows 8 software#
- #Modify hosts file in windows 8 windows 8#
This is because the hosts file is a system file and cannot be modified without elevated privileges. To modify your hosts file, you will need to first run Notepad (or any other text editor available to you on the same computer) as administrator.
#Modify hosts file in windows 8 how to#
Other devices, that do not have the hosts file modified, will resolve to the IP address: 172.16.0.0, found in the DNS zone–present in the name servers that the domain is pointed to.įollow the sections below to learn how to perform a hosts file modification. In the image, the hosts file on “Your Computer” has been modified with the following code:Ĩ6.75.30.9 Since the hosts file was only modified on “Your Computer“, only that device will resolve the domain: to the IP address: 86.75.30.9. The image (to the right) depicts the process of resolving a domain to an IP address using various devices.
#Modify hosts file in windows 8 software#
This is necessary when you are working with domain-name-dependent software (ie: Content Management System (CMS), such as Joomla! or WordPress). This is especially useful when developing your site on our server when your nameservers are not pointed to us yet. Let's put this to rest.A hosts file modification is a simple tweak that is used to “trick” your computer into resolving to a specific IP. MY hosts is set to Read Only, and I didn't set if myself, nor do I use any software that may have done such a thing without my knowledge. I fail to see why an extra layer of security is not implemented by default in every W7 install, but I think I have already said that following this line of debate was useless in this context. I don't know whether it's a default setting or not, but all the machines I've used (personal and those used by friends running a cybercafé) all have the hosts file set to Read Only. I didn't actually check the command, I posted the link out of many stating that the hosts file may be set of Read Only and thus present a difficulty when editing (TechNet is the other link). It is, however, possible that all the problems you're having editing the file are the result of you following other advice from whoever posted that, though.
#Modify hosts file in windows 8 windows 8#
No variant of Windows 7 or Windows 8 comes OOB with a hosts file set with the "read only" attribute unless someone or some application changed it. In fact, at the end of that guy's blog post, he tells you to type a command that will hide the hosts file. It's probably because they copied and pasted it from some other forum somewhere and "it worked." They shouldn't be allowed near a computer AFAIC.

For example, they give no explanation as to why they're using attrib to remove the "hidden" flag on a file that isn't hidden. the person who wrote that doesn't know what he or she is talking about and troubleshoots using dart boards. This issue can be overcome by undoing the read only restriction using the command line editor.


I think though, that having the file set as Read Only is a good measure security wise.
#Modify hosts file in windows 8 full#
This will give you full control, and once you have edited you can always return the file to read only for security, just type:Ĭ:\Windows\System32\drivers\etc>attrib +s +r +h hostsĪnd many other instances, but it's pointless to debate this point. NB "Administrator" in first line is your user name. This issue can be overcome by undoing the read only restriction using the command line editor.Ĭ:\Users\Administrator>cd C:\Windows\system32\drivers\etcĬ:\Windows\System32\drivers\etc> attrib -s -r -h hosts Assign yourself full control and you'll still be unable to save amendments. However, many Vista installs - and Windows 7 upgrades from Vista - will present an Administrator with a read only hosts file. Generally the workaround is to open Notepad by right clicking, selecting run as administrator, and then navigating to Windows/System32/ Drivers/ etc/ hosts - editing, and remembering to save as all files, not text (just click on existing Hosts file to replace.) The hosts file ought never to have a file type extension like. Even as an Administrator it can sometimes be tricky to edit the Hosts file in Vista, or in any Windows 7 system that has been upgraded from Vista.
