Re: Set hostname via DHCP ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

On Mon, Jun 29, 2009 at 04:00, Niki Kovacs<contact@xxxxxxxxxxxxx> wrote:
> host raymonde {
>   hardware ethernet 00:20:ed:b8:e8:ec;
>   fixed-address 192.168.1.2;
>   option host-name "raymonde";
> }
[...]
> lease {
>   option host-name "raymonde";
>   option domain-name "local";
> }
> Here's what 'hostname' returns:
> # hostname
> raymonde
> But when I go for the domain name, I get this:
> # hostname -d
> hostname: Hôte inconnu --> means 'Unknown host' in french :o)
> Any idea what I'm doing wrong here?

I guess you have to use this in dhcpd.conf:

    option host-name "raymonde.local";

At least, in my dhclient-eth0.leases file I have option host-name with
the fully qualified host name...

I am getting host names from DNS with "get-lease-hostnames on;" in
dhcpd.conf, so I think it does what I expect (sending FQDNs) in that
case...

HTH,
Filipe
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux