IN my Ubuntu server i have My source Matrix installed.
I acces the page by typing
http://ubuntu.matrix.local
i want to access the same from other poeple computer on the same LAN.
How can i do that
my /etc/hosts file conatins
127.0.0.1 ubuntu.matrix.local
127.0.1.1 ubuntu
-
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.
Master : 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 10.0.11.121 then it identifies as ubuntu.matrix.localChristian : When you already have a dns server, just add it to the configuration of your clients in `/etc/resolv.conf`.Michael Graff : 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.Master : i can use the ip address also to visit website but the problem is that if i type http://127.0.0.1 then apache server page comes and if i type http://ubuntu.matrix.local then the main page comes. I don't know the path of main page fileFrom Michael Graff -
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.From Raphink -
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...
Master : i have few mac host as well , how cna i configure themdunxd : Check Apple Support pages at http://support.apple.com/kb/TA27291 for how to do the same thing on MacsFrom dunxd
0 comments:
Post a Comment