Results 1 to 2 of 2

Thread: hostname by dhcp (PARTIALLY SOLVED)

  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
  •  


USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack picture

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack

$826.09



Critical BIOS ROM HPE ProLiant DL60 DL80 Gen9 (U15) U15_3.40_08_29_2024+iLO4 picture

Critical BIOS ROM HPE ProLiant DL60 DL80 Gen9 (U15) U15_3.40_08_29_2024+iLO4

$7.99



Critical BIOS ROM HPE ProLiant DL160 DL180 Gen9 (U20) U20_3.40_08_29_2024+iLO4 picture

Critical BIOS ROM HPE ProLiant DL160 DL180 Gen9 (U20) U20_3.40_08_29_2024+iLO4

$7.99



Microsoft Windows 11 Pro 64bit - New Sealed – Flash USB 1 PC picture

Microsoft Windows 11 Pro 64bit - New Sealed – Flash USB 1 PC

$49.99



USB Type-A Flash Drive Metal Memory Stick High Speed USB Drive 128GB 256GB 512GB picture

USB Type-A Flash Drive Metal Memory Stick High Speed USB Drive 128GB 256GB 512GB

$8.47



Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot picture

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot

$285.90



New Samsung DUO Plus 32GB USB 3.1 USB-C Flash Drive Gray MUF-32DB/AM picture

New Samsung DUO Plus 32GB USB 3.1 USB-C Flash Drive Gray MUF-32DB/AM

$19.95



1TB Kingston DataTraveler Max DTMAX/1TB USB Type-C Flash Drive picture

1TB Kingston DataTraveler Max DTMAX/1TB USB Type-C Flash Drive

$86.95



Critical BIOS ROM HPE ProLiant BL460cWS46 Gen9 (I36) I36_3.40_08_29_2024+iLO4 picture

Critical BIOS ROM HPE ProLiant BL460cWS46 Gen9 (I36) I36_3.40_08_29_2024+iLO4

$7.99



Critical BIOS ROM HPE ProLiant DL380/DL360 Gen9 (P89) P89_3.40_08_29_2024+iLO4 picture

Critical BIOS ROM HPE ProLiant DL380/DL360 Gen9 (P89) P89_3.40_08_29_2024+iLO4

$7.99