Results 1 to 2 of 2

Thread: pump to get hostname

Hybrid View

  1. #1
    Junior Member
    Join Date
    Apr 2005
    Posts
    5

    pump to get hostname

    Hi Everyone

    Has anybody had any experience using pump to find out and set the "proper" hostname of a box, based on a DNS server? I am trying to get this to start on boot and its not clear to me if this is even possible. If it isn't, could anybody suggest how to switch to using dhcpc instead to achieve the same?

    Thanks in advance

    Ben

  2. #2
    Junior Member
    Join Date
    Apr 2005
    Posts
    5
    Hi again

    In the end I determined that pump could not do this, so I added the line

    Code:
    hostname $(dig -x `ifconfig $DEVICE | grep "inet addr" |awk '{print $2}' | cut -d : -f2` +short |cut -d . -f1)
    to /etc/init.d/knoppix-auoconfig, after netdevice detection has finished. I set $DEVICE to eth0, but in the more general case I think leaving out $DEVICE should work. If a network was unavailble I think that the command would fail, and the hostname would remain Knoppix (as set earlier in the script)

    Ben

Similar Threads

  1. 'pump -i ra0' crashes system
    By paradigm_shift in forum Networking
    Replies: 0
    Last Post: 07-15-2005, 05:36 AM
  2. When pump fails... (my solution)
    By probono in forum Networking
    Replies: 0
    Last Post: 09-17-2004, 04:52 AM
  3. pump -i eth0 and netcardconfig not working
    By qman_txun in forum Networking
    Replies: 4
    Last Post: 11-04-2003, 08:22 AM
  4. PUMP Missing, what to do next?
    By JockVSJock in forum Networking
    Replies: 7
    Last Post: 10-08-2003, 09:23 AM
  5. Orinoco and pump -i eth 0
    By probono in forum Networking
    Replies: 0
    Last Post: 06-08-2003, 11:42 PM

Posting Permissions

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


New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G picture

New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G

$449.99



HP Proliant MicroServer Gen 8 2.23GHz Xeon 16GB RAM NO SSD picture

HP Proliant MicroServer Gen 8 2.23GHz Xeon 16GB RAM NO SSD

$249.99



Supermicro 505-2   Server picture

Supermicro 505-2 Server

$280.00



Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset picture

Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset

$129.99



Supermicro SuperServer E300-15 - SYS-e300-9C - 16GB RAM 240GB Samsung SSD picture

Supermicro SuperServer E300-15 - SYS-e300-9C - 16GB RAM 240GB Samsung SSD

$199.99



Supermicro 2U X10DRU-i 2x E5-2680 v3 2.5ghz 32gb Ram  240gb SSD 2x GPU *READ* picture

Supermicro 2U X10DRU-i 2x E5-2680 v3 2.5ghz 32gb Ram 240gb SSD 2x GPU *READ*

$369.99



SuperMicro CSE-424 24 Bay LFF 2x 1280W F627R3-RTB picture

SuperMicro CSE-424 24 Bay LFF 2x 1280W F627R3-RTB

$299.98



Supermicro 5019D-4C-FN8TP Xeon D-2123IT (4C/8T) 64GB DDR4 10GbE 480GB 1U Server picture

Supermicro 5019D-4C-FN8TP Xeon D-2123IT (4C/8T) 64GB DDR4 10GbE 480GB 1U Server

$689.00



Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC picture

Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC

$250.00



Supermicro E300-12C Mini 1U Barebone X12SCV-LVDS LGA1200 SNK-P0073A4 w/ Adapter picture

Supermicro E300-12C Mini 1U Barebone X12SCV-LVDS LGA1200 SNK-P0073A4 w/ Adapter

$225.00