---
title: How to modify your Windows host file?
description: Modifying your hosts file enables you to override the domain name system (DNS) for a domain on a specific machine.  Modifying your hosts file causes your local machine to look directly at the Internet
---

[Skip to content](https://faq.mecad.co.za/knowledge/how-to-modify-your-windows-host-file#main-content)

English

Show submenu for translations

[More support](https://faq.mecad.co.za/knowledge/kb-tickets/new?hsLang=en)

[![MECAD Systems Logo - Original 2](https://faq.mecad.co.za/hs-fs/hubfs/MECAD%20Systems%20Logo%20-%20Original%202.png?width=190&height=60&name=MECAD%20Systems%20Logo%20-%20Original%202.png)](https://mecad.co.za/)

- [About](https://mecad.co.za/about/)
- [Products](https://mecad.co.za/products/)
- [Training](https://mecad.co.za/solidworks-training/)
- Support
  
  Show submenu for Support

    - [Request Support](https://mecad.co.za/request-support/)
    - [Contact Us](https://mecad.co.za/contact-us/)
- Resources
  
  Show submenu for Resources

    - [Promotions](https://mecad.co.za/end-of-promotion/)
    - [Product Brochures](https://mecad.co.za/solidworks-product-brochures/)
    - [Customer Stories](https://mecad.co.za/solidworks-customer-stories/)
    - [Blog](https://mecad.co.za/solidworks-blog/)
    - [Webinars](https://www.youtube.com/@mecadsystems-solidworksand4875)
    - [Events](https://mecad.co.za/events/)
    - [Careers](https://mecad.co.za/careers/)

Open main navigation

Close main navigation

- [About](https://mecad.co.za/about/)
- [Products](https://mecad.co.za/products/)
- [Training](https://mecad.co.za/solidworks-training/)
- Support
  
  Show submenu for Support

    - [Request Support](https://mecad.co.za/request-support/)
    - [Contact Us](https://mecad.co.za/contact-us/)
- Resources
  
  Show submenu for Resources

    - [Promotions](https://mecad.co.za/end-of-promotion/)
    - [Product Brochures](https://mecad.co.za/solidworks-product-brochures/)
    - [Customer Stories](https://mecad.co.za/solidworks-customer-stories/)
    - [Blog](https://mecad.co.za/solidworks-blog/)
    - [Webinars](https://www.youtube.com/@mecadsystems-solidworksand4875)
    - [Events](https://mecad.co.za/events/)
    - [Careers](https://mecad.co.za/careers/)
- English
  
  Show submenu for translations
- [More support](https://faq.mecad.co.za/knowledge/kb-tickets/new)
- [Contact us](https://mecad.co.za/contact-us/)

[Contact us](https://mecad.co.za/contact-us/)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [MECAD Systems Knowledge Base](https://faq.mecad.co.za/knowledge?hsLang=en)
2. [General FAQ](https://faq.mecad.co.za/knowledge/general-faq?hsLang=en)

# How to modify your Windows host file?

Modifying your hosts file enables you to override the domain name system (DNS) for a domain on a specific machine. 

Modifying your hosts file causes your local machine to look directly at the Internet Protocol (IP) address that you specify. 

Modifying the hosts file involves adding two entries to it. Each entry contains the IP address to which you want the site to resolve and a version of the Internet address. For example, add the following two entries points, www.domain.com and domain.com to a windows host file.

64.49.219.194 www.domain.com  
64.49.219.194 domain.com

![](https://faq.mecad.co.za/hubfs/image-png-Jun-03-2022-08-42-43-77-AM.png)After you add the domain information and save the file, your system begins to resolve to the IP address that you specified. 

**Windows**  
If you are using a Microsoft operating system like Windows 10, Windows 8, Windows 7, and Windows Vista, you must run Microsoft Notepad as an administrator.  
Windows 10 and Windows 8  
•    Press the Windows key.  
•    Type "Notepad" in the search field.  
•    In the search results, right-click Notepad and select Run as administrator.  
•    From Notepad, open the following file:  
         c*:\\Windows\\System32\\Drivers\\etc\\hosts*  
•    Make the necessary changes to the file.  
•    Select File \> Save, to save your changes.

 

Windows 7 and Windows Vista  
•    Select Start \> All Programs \> Accessories.  
•    Right-click Notepad and select Run as administrator.  
•    The Windows needs your permission UAC window appears.  
•    Click Continue to grant permission.  
•    Notepad opens.  
•    In Notepad, select File \> Open.  
•    In the File name field, enter the following path:  
        *c:\\Windows\\System32\\Drivers\\etc\\hosts*  
•    Select Open.  
•    Make the necessary changes to the file.  
•    Select File \> Save, to save your changes.

 

*Date published: 03/06/2022*

 

- [SOLIDWORKS PDM](https://faq.mecad.co.za/knowledge/solidworks-pdm?hsLang=en)
- [SOLIDWORKS CAM](https://faq.mecad.co.za/knowledge/solidworks-cam?hsLang=en)
- [SOLIDWORKS Visualize](https://faq.mecad.co.za/knowledge/solidworks-visualize?hsLang=en)
- [SOLIDWORKS Simulation](https://faq.mecad.co.za/knowledge/solidworks-simulation?hsLang=en#main-content)

    - [SOLIDWORKS Flow Simulation](https://faq.mecad.co.za/knowledge/solidworks-simulation?hsLang=en#solidworks-flow-simulation)
    - [SOLIDWORKS Simulation](https://faq.mecad.co.za/knowledge/solidworks-simulation?hsLang=en#solidworks-simulation)
- [SOLIDWORKS Electrical](https://faq.mecad.co.za/knowledge/solidworks-electrical?hsLang=en)
- [SOLIDWORKS Inspection](https://faq.mecad.co.za/knowledge/solidworks-inspection?hsLang=en)
- [General FAQ](https://faq.mecad.co.za/knowledge/general-faq?hsLang=en#main-content)

    - [BOM](https://faq.mecad.co.za/knowledge/general-faq?hsLang=en#bom)
    - [Sheet Metal](https://faq.mecad.co.za/knowledge/general-faq?hsLang=en#sheet-metal)
    - [Files](https://faq.mecad.co.za/knowledge/general-faq?hsLang=en#files)
    - [PDM](https://faq.mecad.co.za/knowledge/general-faq?hsLang=en#pdm)
    - [Weldments](https://faq.mecad.co.za/knowledge/general-faq?hsLang=en#weldments)
    - [Assembly](https://faq.mecad.co.za/knowledge/general-faq?hsLang=en#assembly)
    - [Installation](https://faq.mecad.co.za/knowledge/general-faq?hsLang=en#installation)
    - [SolidWorks Standalone License](https://faq.mecad.co.za/knowledge/general-faq?hsLang=en#solidworks-standalone-license)
    - [File Locations](https://faq.mecad.co.za/knowledge/general-faq?hsLang=en#file-locations)
    - [Certifications](https://faq.mecad.co.za/knowledge/general-faq?hsLang=en#certifications)
- [3DEXPERIENCE Platform](https://faq.mecad.co.za/knowledge/3dexperience-platform?hsLang=en#main-content)

    - [FAQ](https://faq.mecad.co.za/knowledge/3dexperience-platform?hsLang=en#faq)
    - [Updates](https://faq.mecad.co.za/knowledge/3dexperience-platform?hsLang=en#updates)
- [SOLIDWORKS 3D CAD](https://faq.mecad.co.za/knowledge/solidworks-3d-cad?hsLang=en#main-content)

    - [Activation](https://faq.mecad.co.za/knowledge/solidworks-3d-cad?hsLang=en#activation)
    - [Tips & Tricks](https://faq.mecad.co.za/knowledge/solidworks-3d-cad?hsLang=en#tips-tricks)
    - [Installation](https://faq.mecad.co.za/knowledge/solidworks-3d-cad?hsLang=en#installation)
    - [Custom](https://faq.mecad.co.za/knowledge/solidworks-3d-cad?hsLang=en#custom)
    - [Configurations](https://faq.mecad.co.za/knowledge/solidworks-3d-cad?hsLang=en#configurations)
    - [Drawings](https://faq.mecad.co.za/knowledge/solidworks-3d-cad?hsLang=en#drawings)
    - [PDM](https://faq.mecad.co.za/knowledge/solidworks-3d-cad?hsLang=en#pdm)
    - [Assemblies](https://faq.mecad.co.za/knowledge/solidworks-3d-cad?hsLang=en#assemblies)
- [SOLIDWORKS Gold Products](https://faq.mecad.co.za/knowledge/solidworks-gold-products?hsLang=en#main-content)

    - [myCADtools](https://faq.mecad.co.za/knowledge/solidworks-gold-products?hsLang=en#mycadtools)
- [Licensing FAQ](https://faq.mecad.co.za/knowledge/licensing-faq?hsLang=en#main-content)

    - [July 2023 SOLIDWORKS License & Subscription Changes](https://faq.mecad.co.za/knowledge/licensing-faq?hsLang=en#july-2023-solidworks-license-subscription-changes)
- [DraftSight](https://faq.mecad.co.za/knowledge/draftsight?hsLang=en)
- [MECAD Events](https://faq.mecad.co.za/knowledge/mecad-events?hsLang=en#main-content)

    - [MECAD Accelerate](https://faq.mecad.co.za/knowledge/mecad-events?hsLang=en#mecad-accelerate)

- [About](https://mecad.co.za/about/)
- [Products](https://mecad.co.za/products/)
- [Training](https://mecad.co.za/solidworks-training/)
- [Support](https://mecad.co.za/request-support/)
- [Request a quote](https://mecad.co.za/request-a-quote/)

[![Chill listening crop-3](https://faq.mecad.co.za/hs-fs/hubfs/download.png?width=137&height=24&name=download.png "Chill listening crop-3")](https://mecad.co.za/)

**Centurion Offices**

Rosehip Office Park, 29 Landmarks Ave, Kosmosdal Ext 11, Samrand Centurion Gauteng

+27 12 645 4300

 

**Cape Town Offices**

Unit E1, Centurion Business Park, Cnr Bosmansdam & Democracy Road, Milnerton Cape Town, Western Cape

+27 21 555 1513

 

**Durban Offices**

Fairway Green Office Park, Gardenia House, 3 Abrey Road, Kloof Durban KwaZulu-Natal

+27 31 764 7658

<https://www.facebook.com/> <https://www.twitter.com/> <https://www.instagram.com/> <https://podcasts.apple.com/> [mailto:email@email.com](mailto:email@email.com)

Copyright © 2025, MECAD