↓
 
Video and Web

Video and Web

A marketing agency with vision

Video and Web
   
logo    
  • Marketing Packages
    • Package Overview
    • Foundations
    • Visibility
    • Authority
  • Our Approach
  • Services
    • Web Design
    • Hosting
    • Website maintenance
    • Brand Identity
    • Domain Names
    • Search Engine Optimisation
    • Content Writing
    • Email Marketing
    • Pay-Per-Click (PPC)
  • Video
    • Conference & Event Video Production
    • Brand Story Video
  • Blog
  • About
    • About Video & Web
    • Our Work
    • Support Database
  • Contact

How can I modify my hosts file?

Video and Web
By vw_devadmin
Creative Director, Video & Web
April 2023 |
 

Back to Support Database

Your machine’s local hosts file allows you to overide DNS for a particular domain or subdomain name.

This is a great way to test the site ahead of changing real DNS: you’re able to test the website at Video & Web while the rest of the internet continues to use DNS to point to the existing website.

The way to modify this file and the location of it differs by operating system.

To modify your hosts file, you can add two entries to the file that contains the IP address that you want the site to resolve to and the IP address. Adding the following two lines, for example, would point www.domain.com and domain.com to the IP 1.2.3.4:

1.2.3.4 domain www.domain.com

For Windows:

  • Press Start and Search for ‘Notepad’
  • In the search results, right-click Notepad and select Run as administrator.
  • Use File -> Open and navigate to the following file: c:\Windows\System32\Drivers\etc\hosts
  • Make the changes (below)

For Mac OS 10.0 to 10.6:

  • Open Applications > Utilities > Terminal
  • Type sudo nano /etc/hosts
  • Enter the administrator password
  • Make the changes (below)

To save changes in nano, press Control+x and then y when prompted.

For Mac OS X 10.6 through 10.11:

  • Open Applications > Utilities > Terminal
  • Type sudo nano /private/etc/hosts
  • Enter the administrator password
  • Make the changes (below)
  • Type dscacheutil -flushcache in to Terminal and press enter.

To save changes in nano, press Control-x and then “y” when prompted.

For Linux:

  • Use your favourite editor to open /etc/hosts (i.e sudo vim /etc/hosts)
  • Make the changes (below)

Making The Change

The hosts file takes arguments of the format:

XX.XX.XX.XX domain.tld www.domain.tld

The IP address for the website is displayed down the right hand side of our control panel, under the ‘IP Address’ heading. They’ll usually start with ‘185.151.2x.xxx’:

185.151.2x.xxx domain.tld www.domain.tld sub.domain.tld

After you add this line and save the file, your system begins resolving to the specified IP address.

After testing is finished please remove these entries so you start using “real DNS” once again.

It’s important to ensure that when making this change you have entries for both your domain and all relevant subparts. For example, if you just add an entry for “domain.tld”, then “www.domain.tld” will point the original server.

Related support articles

  • Are you PCI compliant?
  • Can I enable GZIP Web Server Compression?
  • Can I use parent paths in Classic ASP?
  • Can you update the version of cURL on your webservers?
  • Content Delivery Network (CDN) Statistics
  • How can I show detailed ASP errors?

Related Topics

DNS, Windows

Subscribe to our Newsletter

Video and Web
Video & Web Ltd,
20-22 Wenlock Road,
London
N1 7GU
Tel: 020 7111 1644
Email: info@videoandweb.com
         

Company

Company

About Us
Areas we Serve
Latest Blog Posts
Privacy Policy
Ethical Policy
Customer Reviews
Subscribe to our Newsletter
Follow Us

Web Services

Website Design
Content Marketing
Copywriting & Layout
Website Builder
Website Hosting
Wordpress Hosting
Managed VPS
Website Maintenance
Register a new domain
Transfer your domain to us

Strategy & Promotion

Free Strategic Review
Blueprint Strategy
The A-List
Video Production
Conference & Event Video
Search Engine Optimisation (SEO)
Social Media
Brand Identity
Email Marketing
Pay-Per-Click Advertising

Support

Support Database
Latest Blog Posts
Server Status
Customer Services
Hosting CP Login
Client Project Hub
Webmail
Book a Meeting
Contact Us

Company

Company

About Us
Areas we Serve
Latest Blog Posts
Privacy Policy
Ethical Policy
Customer Reviews
Subscribe to our Newsletter
Follow Us

Web Services

Website Design
Content Marketing
Copywriting & Layout
Website Builder
Website Hosting
Wordpress Hosting
Managed VPS
Website Maintenance
Register a new domain
Transfer your domain to us

Strategy & Promotion

Free Strategic Review
Blueprint Strategy
The A-List
Video Production
Conference & Event Video
Search Engine Optimisation (SEO)
Social Media
Brand Identity
Email Marketing
Pay-Per-Click Advertising

Support

Support Database
Latest Blog Posts
Server Status
Customer Services
Hosting CP Login
Client Project Hub
Webmail
Book a Meeting
Contact Us

Video and Web

Video & Web Ltd,
20-22 Wenlock Road,
London
N1 7GU
Tel: 020 7111 1644
Email: info@videoandweb.com

- Weaver Xtreme Theme
Website Designed by:   VideoandWeb.com © 2026 Video & Web Ltd. All Rights Reserved.
Video & Web Ltd, 20-22 Wenlock Road, London N1 7GU. Registered in England & Wales - Company Number: 09336282.
 © 2026 Video & Web Ltd. All Rights Reserved.
[elfsight_popup id="1"]
↑

We use cookies on our website to personalise and improve your experience and ensure the website works correctly. View our Privacy Policy

Cookie preferences

You can choose which types of cookies you are happy for us to use.

Necessary

Required for the site to function and cannot be switched off.

Analytics

Help us understand how the site is used so we can improve it.

Marketing

Used to show you relevant marketing and adverts.