From: laredotornado on
On Jun 25, 10:09 pm, JF Mezei <jfmezei.spam...(a)vaxination.ca> wrote:
> laredotornado wrote:
> > Hi,
>
> > I'm using Mac 10.6.3.  My IP is assigned through DHCP, so it changes
> > periodically.  There are some other machines on my network that need
> > to access my machine, and so I was wondering if there is a way to
> > configure my /etc/hosts file to contain an entry for
>
> Populating your /etc/hosts file won't magically allow other nodes on the
> lan to access your machine by name.
>
> HOWEVER, if the DHCP interfaces to the DNS server for dynamic updates,
> it then becomes possible for a DNS entry to be maintained by the DHCP
> server for the duration of your DHCP lease.
>
> Another possibility is to get your system manager to give you a fixed Ip
> address via DHCP. This way, a fixed entry in the DNS server can be made
> to point to your IP address.
>
> Either way, this must be accomplished via the DNS server, not your
> /etc/hosts file.

Couple of things -- this isn't for /etc/hosts on my machine, it is
for /etc/hosts for other machines trying to access my machine. Also,
it is not immediately an option to assign a static IP as I don't have
control over DNS.

I would use the ".local" suggestion but I'm running an Apache server
locally with two virtual hosts (and two server aliases) so accessing
each host would rely on a different URL.

Any suggestions for broadcasting my IP to other machines is greatly
appreciated. Thanks - Dave