Acessing VMware Ubuntu by server name
Owen Townend
owen.townend at gmail.com
Wed Sep 24 11:25:54 UTC 2008
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.
cheers,
Owen.
More information about the ubuntu-users
mailing list