Acessing VMware Ubuntu by server name

marc gmane at auxbuss.com
Wed Sep 24 18:16:25 UTC 2008


Owen Townend said...
> 2008/9/24 marc <gmane at auxbuss.com>:
> > Hi,
> >
> > I have Ubuntu running as a VMware vm on a Windows XP box.
> >
> > I can access services, say Apache, by the vm's IP address, but I would
> > like to access them by their machine/domain name.
> >
> > In other words, use:
> >
> >  http://server/helpdesk
> >
> > instead of:
> >
> >  http://192.168.1.201/helpdesk
> >
> > Is there a way to do this?
> >
> > I am using a bridged connection, so the vm has its own IP address.
> 
> Hey,
> If you're able to ping other hosts on your network by name already
> then you probably just need this line in your /etc/dhcp3/dhclient.conf
> file:
> 
> send host-name "<hostname>";
> 
> This will do exactly what it sounds like... it will send the server
> its hostname when it updates its IP address through dhcp.  Many home
> modems and routers use dnsmasq or similar and map dhcp client names to
> dns entries.

Thanks, Owen. I'm pretty sure this would work.

In the end, I installed Samba, and something it does magically made the 
VM available to the local network.

-- 
Cheers,
Marc





More information about the ubuntu-users mailing list