How to Set Up a Local Dns Host File on Mac OS X
Carry out these step by step instuctions to install the Xcode on Mac 10.13 computer(Local Dns Host File on Mac OS X)
- Setting up a local DNS can be useful while working in a production environment.
- To set up the DNS host file in Mac is quite simple. Follow the steps given below.
- Open the Terminal Windows.
- The terminal windows option comes under the Applications and Utility option.
- Once the terminal window opens, enter the following command given below to open the local host file.
- $ Sudo nano /ets/hosts
- The sudo command requires the admin password to open the file as root.
- To add a new hostname in the Host file of the terminal window, enter the following command
- IP Address Host 0.0.0.0 example.domain.com
- You can now save the changes in the host file by pressing Shift key + Z (Twice).
- The moment you click save changes, the Mac will process the above changes, and the effect will take place.
- You can check the changes by going to the browser and notice if the development environment opens up instead of the production page.
- Follow the above steps to ensure that the local DNS host file is set up Successfully.
To know more on how to setup Dns Host File on Mac OS X, feel free to contact our experts. We are providing a Simple Installation Help Guidelines for Hardware & Software Devices such as Smart Phones, Desktops, Routers, Printers, Antivirus, etc from Our Tech Experts. To know more about our services, please take a look on www.installation-help.com