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

Re: DHCP, send hostname und MS Nameserver



Hallo,

Mark Brandis <mark.brandis@gmx.de>:

>iface eth0 inet dhcp
>	hostname host.domain.de
>
>Hier bekommt der Laptop eine IP, sein Name wird aber nicht beim Nameserver 
>eingetragen.

>Eigentlich ist doch genau das das, was der Eintrag in interfaces tun soll?!? 
>Hat jemand ähnliche Erfahrungen? Eine Lösung?
>
>Ich nutze dhcp3-client und dhcp3-common in Version 3.1.1-5.

/etc/network/interfaces bzw. ifupdown arbeitet mit mehreren DHCP
Clients zusammen, aber nicht jeder unterstützt jede Option. Aus
man interfaces:

   The dhcp Method
       This method may be used to obtain an address via DHCP with any of the
       tools:  dhclient, pump, udhcpc, dhcpcd. (They have been listed in their
       order of precedence.) If you have a complicated DHCP setup  you should
       note  that  some of these clients use their own configuration files and
       do not obtain their configuration information via ifup.

       Options

              hostname hostname
                     Hostname to be requested (pump, dhcpcd, udhcpc)


Also sollte es helfen, dhclient zu installieren und statt dessen z.B.
pump zu installieren. Vorher den Rest der Manpage lesen, um zu wissen,
welche DHCP Optionen du sonst noch brauchst.

Gruß, Harald


Reply to: