skip to content »

Updating etc hosts

updating etc hosts-18

Having graduated from the College of William and Mary with a background in history and government, he is as comfortable discussing digital rights and policy as he is reviewing apps.

updating etc hosts-8updating etc hosts-77updating etc hosts-82updating etc hosts-48

By mapping an IP address to a server name (or domain name), you can skip the process where a web browser uses a Domain Name Server(DNS) lookup to translate the domain name to the IP address.It is hard to keep the site running and producing new content when so many people block ads.Please consider donating money to the nix Craft via Pay Pal/Bitcoin, or become a supporter using Patreon.For example, if you ask for, the DNS servers will return Wikipedia’s IP address to your computer.But if you wanted to block Wikipedia on that computer, you can add an entry in the hosts file that tells your computer that points to some other IP address that’s different from Wikipedia’s actual IP address..The file is nsswitch.conf, and if it’s configured to look at DNS first, then it’ll skip your hosts file and go straight to DNS lookup.

To check the configuration, in your terminal window type: The terminal will return a list of information.

Alternatively, you can use the hosts file to create shortcuts to certain sites on the web.

Use a command such as nslookup to find a website’s IP address, then add it to your hosts file alongside the desired shortcut, just as in the example above.

It will add entries into the hosts file that point the hostnames you specify to

But to do anything else, you will still need to make changes with a text editor.

Since it’s a plain text file, you can open the hosts file using your preferred text editor.