10 Nov

How to access a site temporarily nameserver?

Temporarily nameserver, As we have mod_userdir protection for a few servers, clients hosted on those servers will not be view website using tide(~) sign. So, this knowledge base will guide a secondary method to view the site without the tide(~) sign. mod_userdir protection is enabled for security reason.

Browse the following directory in your C Drive >> Windows >> System32 >> Drivers >> Etc >> Edit the file named “hosts” with a notepad.

By default, there should be a line like this:

“127.0.0.1 localhost”

Go to the next line and add this:

104.156.55.184 aptcom.info
104.156.55.184 www.aptcom.info

Now note, replace aptcom.info with your own domain and change 104.156.55.184 with the IP allocated for your account. To find which IP is allocated for your account, login to your cPanel, and from the left or right menu, find “Shared IP address” or “Dedicated IP address”. Another way, you can find this out by going to WHM >> List Accounts >> Search yourdomain.com and the IP listed.

Save the file and try pinging your domain. It should point to the IP you listed in hosts file. And if you try to browse your site now, it should go to our server or the IP you listed in hosts file.

Here is how you can do this on most common OS;

Windows 10, Windows 8, Windows 7, and Windows Vista use User Account Control (UAC), so Notepad must be run as Administrator.

For Windows 10 and 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.
Click File > Save to save your changes.

Temporarily nameserver completed.

Leave a reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.