0

I have a website which is hosted in local Server (CentOS 5.x) (Hostname: xxx.yyy.local, IP : 192.168.5.25). I can browse the site typing server ip in the browser from my Local Network.

How can I get an alias for “http://192.168.5.25/support” Eg: http://mycompanysupport ?

Note this is required for Internal network only. I don't want to access this site outside of my network.

3

1 Answer 1

1

Edit the hosts file of your local machine (or the server running your DNS) to include the following:

192.168.5.25     mycompanysupport

The location of your hosts file will vary depending upon your platform.

For Windows NT and Windows 2000:

C:\winnt\system32\drivers\etc

For Windows XP, Windows Vista, Windows 7 or Windows 8:

C:\Windows\System32\drivers\etc

For *nix:

/etc/hosts

The hosts file must be edited as the Administrator or root user. In Windows, remember to open your text editor as the Administrator user. In *nix, open the file for editing as the root user.

3
  • I don't want to edit /etc/hosts in all the clients. What entry do I need to add in my local DNS? I am using BIND.
    – SM_IND
    Jun 30, 2015 at 10:03
  • You don't need to edit the /etc/hosts in all clients. Edit the /etc/hosts file on the server running your DNS daemon.
    – Elliot B.
    Jun 30, 2015 at 15:15
  • I have edited /etc/hosts file on the Server running my DNS daemon. But still I am not able to access the site with the link. I have pointed my Laptop DNS to my internal DNS server IP.
    – SM_IND
    Jul 1, 2015 at 7:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .