Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

terenctb

macrumors newbie
Original poster
Sep 12, 2005
1
0
Hi,

I was wondering if this is possible. I would like to:
a) Set the hostname on Tiger to something
b) Let everybody else know that this is the hostname instead of refering to it by its IP.

I am running a internal webserver in our office. The mac is using DHCP to get its IP address. There must be a way to set the hostname on the mac and let everybody know about it? Or does the changes have to be done on the DHCP host(i.e. the DHCP host will recognize the mac address and assign a hostname to it?).
 
terenctb said:
Hi,

I was wondering if this is possible. I would like to:
a) Set the hostname on Tiger to something
b) Let everybody else know that this is the hostname instead of refering to it by its IP.

I am running a internal webserver in our office. The mac is using DHCP to get its IP address. There must be a way to set the hostname on the mac and let everybody know about it? Or does the changes have to be done on the DHCP host(i.e. the DHCP host will recognize the mac address and assign a hostname to it?).
I believe this is a DNS issue. The DNS server holds the info/names of the computers that are attached to that domain. So if your computer is not hooked into the domain, then it can't be searched by name, only by IP. You only have a DHCP server, which hands out IP addresses, doesn't collect the names of the computers on the network.

Setting the host name I believe is done under Network in the System Preferences.
 
varmit is right. You need to configure dynamic DNS (DDNS). From a 40,000 foot view, you configure a DNS server for forward and reverse lookups _and_ to accept dynamic DNS updates. Then you configure your DHCP server to update DNS whenever it assigns an IP address to a client.

In the Microsoft world, you can do this with Active Directory and it's own DNS server. On Unix, you can do this with BIND and practically any DHCP server.
 
Bonjour to the rescue

If you have bonjour running, you can just access them using the hostname.local style:

myhostname.local ==> 192.168.0.x


The sharing prefs should give you the .local name for your machine.

Karen
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.