Question
How can I view my site without pointing DNS?
Answer
To view your site without pointing the DNS, you can modify your local computer's host file. This method allows you to test your domain, subdomains, and add-on domains.
-
Open your host file on your local computer using your favorite editor.
Note: For Linux and MacOS, this would be
/etc/hosts
For Windows, this would beC:\Windows\System32\Drivers\etc\hosts -
Add the following line for the domain and any subdomains or add-on domains you want to test:
CONFIG_TEXT: 203.0.113.2 example.com
Note: In this above,
203.0.113.2represents the server’s IP address, andexample.comrepresents the domain name. - Save and close the host file.
Comments
0 comments
Article is closed for comments.