[arch-general] [PATCH] send hostname to DHCP server / router
Aaron Griffin
aaronmgriffin at gmail.com
Fri Nov 20 19:15:11 EST 2009
On Fri, Nov 20, 2009 at 6:02 PM, Suraj Kurapati <sunaku at gmail.com> wrote:
> Hello,
>
> For the longest time, the default ArchLinux networking setup had one
> deficiency: it would not send the machine hostname to the DHCP server
> / router when acquiring a DHCP lease. As a result, I was never able
> to ping/ssh my ArchLinux system by its hostname from other machines in
> my home network --- instead, I was always forced to type out my
> ArchLinux system's IP address in full.
>
> I looked high and low across the 'net before I finally found the
> answer in the dhcpcd.conf man page: the solution is to add the
> following line to your /etc/dhcpcd.conf file:
>
> hostname
>
> One thing that confused me is this line in the default ArchLinux
> /etc/dhcpd.conf file:
>
> # dhcpcd-run-hooks uses these options.
> option domain_name_servers, domain_name, domain_search, host_name
>
> The "option host_name" part *seems* like it would send your machine's
> hostname to the DHCP server, but it really doesn't. Maybe that's a
> bug?
>
> I request the developers in charge of the default ArchLinux networking
> setup to make the above change, so that ArchLinux systems send their
> hostnames to the DHCP server (and therefore can be
> pinged/ssh'ed/accessed by their hostname) out of the box!
>
> Thanks for your consideration.
Please file this in the bug tracker or it will never happen
More information about the arch-general
mailing list