Edit Hosts File in Windows 10

Edit Hosts File in Windows 10

A question we regularly get from our customers is: “How can we test our website in advance; our website is currently still hosted by another internet company”. If your website is on a Linqhost server, but the domain name of which does not yet refer to our servers, and you want to view/test it, you can adjust the so-called hosts file. In this way, you influence the way in which your computer approaches your domain name.

General

When accessing a domain name, your PC will always look for the location to which it refers on the internet. This is done using DNS settings. The location of your domain name is known to your ISP. As soon as you call up this domain name, the DNS of your ISP will refer it to the correct location.

In this article we will explain exactly how to edit the hosts file on Windows 10 so that you can visit your website without going through a DNS server.

Hosts file in Windows 10

Start Windows Notepad as Administrator



Open the hosts file in C:\Windows\System32\drivers\etc. If you don't see this file, change the text documents to all files at the bottom right.



In the hosts file, add the following line. Where you must replace yourdomainname.nl with your own domain name and 5.178.113.39 with the IP address of the Linqhost server where your website is located.



After this, save the change to the hosts file and the change will be active immediately.
Restart your web browser. When opening the website in your browser, your website will be loaded from our server.
Please note that you must undo this change once you have finished testing your website.


    • Related Articles

    • Setting up E-mail in Windows LiveMail

      Setting up your email in Windows LiveMail is usually a matter of a few simple steps. But for those who need help, this guide provides a clear step-by-step explanation to configure your email address quickly and easily. Setting up email in Windows ...
    • File transfer with rsync

      Do you have multiple servers? Then it may happen that you want to copy files from one server to another server. To do this properly, we use the tool rsync. We are happy to explain to you how you can use this to copy files. Copying RSYNC files There ...
    • Suppress SSH login notifications

      We regularly see that the so-called deploy services suffer from output that we generate when logging in via SSH (e.g. pre-login/motd). This output has the function to show the user important information, but in the case of automatic processes this is ...
    • Preventing simultaneous cron jobs with Flock

      Cronjobs are tasks that are executed periodically and can be set via the crontab command. It is an easy way to execute tasks automatically. The basic explanation of cronjobs can be found in an earlier blog post on our website. However, a cronjob can ...
    • Ibdata is eating up my disk space

      In a previous life, when I first started using MySQL, we only had MyISAM table space in MySQL. This was not ACID compliant, which meant it was very error prone with crashes and so on. Things changed when MySQL added the InnoDB storage engine. But ...