Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

IN my Ubuntu server i have My source Matrix installed.

I acces the page by typing


i want to access the same from other poeple computer on the same LAN.

How can i do that

my /etc/hosts file conatins   ubuntu.matrix.local   ubuntu
share|improve this question
I don't know wether your question regarding Macs is answered but you just have to add the IP address and name in /private/etc/hosts. – Felix Jan 15 '10 at 23:56
up vote 1 down vote accepted

If only a few computers, just create a hosts file with the correct IP details and store in the appropriate place on those computers. That is how people did things before DNS was invented! If you have a large network, you surely have DNS somewhere...

share|improve this answer
i have few mac host as well , how cna i configure them – John Jan 12 '10 at 23:08
Check Apple Support pages at for how to do the same thing on Macs – dunxd Jan 25 '10 at 11:02

That makes it available to your host, but not other people's hosts. You need to either run a local DNS server and point all the clients to it (harder) or see if your router/NAT box will let you do what you want.

share|improve this answer
under what options will i be able to do that in router. i have dns server installed on server. I added the one forward lookup zone for that name and IP address.If i use ping ubuntu.matrix.local then it don't work but if i use ping -a then it identifies as ubuntu.matrix.local – John Jan 12 '10 at 6:32
When you already have a dns server, just add it to the configuration of your clients in /etc/resolv.conf. – Christian Jan 12 '10 at 7:12
Every computer will have to use YOUR dns server, and that includes the machine running the server itself. You will have to properly configure the zone, and then add the address records to it. I suspect you need a primer on DNS. Google should find a few thousand helpful articles. – Michael Graff Jan 12 '10 at 8:38
i can use the ip address also to visit website but the problem is that if i type then apache server page comes and if i type ubuntu.matrix.local then the main page comes. I don't know the path of main page file – John Jan 12 '10 at 11:22

On a LAN, you could use mDNS if you don't want to setup a DNS server.

On Ubuntu (and Linux distributions in general), Avahi is responsible for managing mDNS requests. All the servers who need to access your machine will need to use an mDNS system also.

mDNS works by broadcasting the DNS request on the LAN so it doesn't depend on a centralized DNS server.

I would really advise you do use a DNS server (or at least to distribute a /etc/hosts file using Puppet for example), but mDNS can do if your need is limited.

share|improve this answer

I strongly recommend to use DNS server, like bind (apt-get install bind9) or djbdns (apt-get install djbdns). In simple LAN environements, setting a DNS is pretty easy task. You can learn a lot and have a lot of fun.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.