DHCP hostname? for local domain

Discussion in 'macOS' started by terenctb, Sep 12, 2005.

  1. terenctb macrumors newbie

    Sep 12, 2005

    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?).
  2. varmit macrumors 68000


    Aug 5, 2003
    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.
  3. belvdr macrumors 603

    Aug 15, 2005
    No longer logging into MR
    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.
  4. nasukaren macrumors newbie

    Apr 23, 2008
    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.


Share This Page