Welcome to WebmasterWorld Guest from 54.159.246.164

Forum Moderators: bakedjake

Message Too Old, No Replies

alias domain available on lan

   
7:48 pm on Oct 26, 2012 (gmt 0)



I am using domain aliases on a Linux machine for development. Is there a way to specify all machines on a LAN can find such a domain?

I can find sites from my Windows PC by entering the Linux machine's IP address in the address bar of My browser. But aliases provide a better way of defining the top level root directory of a site to more closely mimic the site as deployed on a production server.

I would like to be able to enter a uri in a browser on either my Windows or Linux machine and have it open the site defined/hosted on the Linux machine.

Thanks for reading this and have a great day.

[edited by: bill at 7:12 am (utc) on Oct 28, 2012]
[edit reason] formatting [/edit]

9:14 pm on Oct 26, 2012 (gmt 0)

WebmasterWorld Senior Member dstiles is a WebmasterWorld Top Contributor of All Time 5+ Year Member



Put them in the hosts file? (/etc on linux, buried in (osfolder)/etc on windows).

You have to define it for all computers you want to access the domain from.

Edit hosts on linux with: sudo gedit /etc/hosts
11:24 am on Nov 4, 2012 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month



But aliases provide a better way of defining the top level root directory of a site to more closely mimic the site as deployed on a production server.


DO you mean you want it to be on exactly the same domain as the production server would be on? Either edit the hosts file, or run a local DNS server.

If you just want to use some sort of domain names, Linux usually supports multicast DNS of of the box (domain names are [computername].local). AFAIK the usual solutions for Windows is Apple's "Bonjour for Windows"