Results 1 to 2 of 2

Thread: hostname by dhcp (PARTIALLY SOLVED)

Hybrid View

  1. #1
    Junior Member
    Join Date
    Oct 2007
    Posts
    2

    hostname by dhcp (PARTIALLY SOLVED)

    Hi all.

    I'm using Knoppix to boot from PXE and have a prompt in every machine i use. the machines are registered in a dhcp server and their hostname is set by whatever dhcp gives. with knoppix that is not happening.

    After remastering the Knoppix files, i've commented out the line in the knoppix autoconfigure script that sets the hostname to Knoppix, but still i don't have the hostname defined.
    In the same autoconfigure script of knoppix, in the line that the script pulls up the ethernet interfaces with pump, i've read the man page and added the following option
    Code:
    --lookup-hostname
    but no sucess...

    In the config file of dhcpc
    Code:
    /etc/dhcpc/config
    (in a chroot environment), i've defined -h (even -H) as an option, but still no results...

    I need the hostname defined so i can performe other operations in the machine...

    Cheers,

    Bruno

  2. #2
    Junior Member
    Join Date
    Oct 2007
    Posts
    2
    Hi. It's partially done.

    After changing root to the knoppix, as described in the remastering howto, i've replaced the pump with dhcpcd. I've installed dhcpcd (which apt automatically removes pump).

    Edited the knoppix-configure script in /etc/init.d/ and replaced the pump command with dhcpcd.

    IMPORTANT: during the removel process, a question is placed - if you want to remove the files in the /etc/dhcpc. i've answered yes, but a problem arise when booting. it's necessary to recreate in that directory the resolv.conf file. a simple touch resolv.conf is enough.
    Edit the config file and where it says SET_HOSTNAME=no change to yes and uncomment the line. everything should be fine.

    After that, booting with PXE and execute hostname give's me the computer hostname as it's defined in the dhcp.

    The problem cames now when rebooting. it sends the kill signals but it hangs... before installing dhcpcd everything was fine, but now i beliave it's because dhcpc-bin (which is executed by dhcpcd).

    Cheers,

    Bruno

Similar Threads

  1. [Solved] Can Not Use DHCP
    By NoMansLand in forum Networking
    Replies: 1
    Last Post: 01-26-2008, 04:18 PM
  2. How to Set the Hostname to KNOPPIX-MAC Address (SOLVED)
    By bcpembo in forum Customising & Remastering
    Replies: 9
    Last Post: 10-26-2007, 08:46 AM
  3. Intel 810 AC'97 soundcard only partially working
    By JNeuhoff in forum Hardware & Booting
    Replies: 2
    Last Post: 02-27-2005, 09:52 PM
  4. Can't set hostname.
    By WimG in forum Networking
    Replies: 5
    Last Post: 09-27-2003, 04:16 PM
  5. [b]Setting Hostname by DHCP server info[/b]
    By roberto dias in forum Networking
    Replies: 1
    Last Post: 08-30-2003, 07:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Intel Core i7-3770K 3.5 GHz Processor picture

Intel Core i7-3770K 3.5 GHz Processor

$39.00



Intel Core i7-9700 3.0 GHz Octo-Core (SRG13) Processor picture

Intel Core i7-9700 3.0 GHz Octo-Core (SRG13) Processor

$79.00



Intel Core i5-12500 3.00 GHz LGA 1700 Desktop CPU Processor SRL5V picture

Intel Core i5-12500 3.00 GHz LGA 1700 Desktop CPU Processor SRL5V

$125.00



Intel Core i7-7700 SR338 3.6GHz 4-Core LGA 1151 Kaby Lake CPU Processor - Good picture

Intel Core i7-7700 SR338 3.6GHz 4-Core LGA 1151 Kaby Lake CPU Processor - Good

$39.99



Intel Core i7-7700T 2.9GHz 8MB Socket LGA1151 Quad Core Processor SR339 picture

Intel Core i7-7700T 2.9GHz 8MB Socket LGA1151 Quad Core Processor SR339

$39.99



Intel 4th Gen Core i7-4790 SR1QF 3.60GHz (Turbo 4.00GHz) 8M 4-Core LGA-1150 CPU picture

Intel 4th Gen Core i7-4790 SR1QF 3.60GHz (Turbo 4.00GHz) 8M 4-Core LGA-1150 CPU

$39.99



Intel i7-8700 Coffee Lake 3.2GHz 6-Core Max Turbo 4.6GHz Processor picture

Intel i7-8700 Coffee Lake 3.2GHz 6-Core Max Turbo 4.6GHz Processor

$69.99



Intel Core i7-9700 SRG13  3.0 GHz  Desktop CPU picture

Intel Core i7-9700 SRG13 3.0 GHz Desktop CPU

$80.00



hp Desktop PC Computer Quad Core 16GB RAM DUAL 22

hp Desktop PC Computer Quad Core 16GB RAM DUAL 22" LCDs Wi-Fi BT Windows 11 SSD

$219.99



Intel Core i5-11500 2.70 GHz LGA 1200 Desktop CPU Processor SRKNY picture

Intel Core i5-11500 2.70 GHz LGA 1200 Desktop CPU Processor SRKNY

$94.99