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
  •  


Original Vintage Old Style STANDARD Black CD Jewel Case (Heavy Duty) 90g Lot picture

Original Vintage Old Style STANDARD Black CD Jewel Case (Heavy Duty) 90g Lot

$316.95



Vintage NEC CDR-1410A 50 Pin SCSI CD-ROM Optical Drive Used picture

Vintage NEC CDR-1410A 50 Pin SCSI CD-ROM Optical Drive Used

$39.99



VINTAGE Custom Built Desktop-AMD A6-3500@2.10GHz 8GB RAM 80GB HDD NO OS-READ picture

VINTAGE Custom Built Desktop-AMD [email protected] 8GB RAM 80GB HDD NO OS-READ

$160.00



Gigabyte GA-7ZX Series VIA KT133 Socket A Motherboard User's Manual Vintage PC picture

Gigabyte GA-7ZX Series VIA KT133 Socket A Motherboard User's Manual Vintage PC

$9.95



Vintage Fossil Leather Nylon Commuter Crossbody Messenger Bag Flap Top Soft picture

Vintage Fossil Leather Nylon Commuter Crossbody Messenger Bag Flap Top Soft

$28.75



Early Intel 3301 White Cap Vintage Ceramic chip - ALL LEGS INTACT (BO) picture

Early Intel 3301 White Cap Vintage Ceramic chip - ALL LEGS INTACT (BO)

$750.00



Shuttle XPC SS51G Mini Barebone PC Custom Superhero Case Vintage Retro Desktop picture

Shuttle XPC SS51G Mini Barebone PC Custom Superhero Case Vintage Retro Desktop

$279.95



Vintage Staples 3.5 Floppy Diskettes, 9 DS/HD IBM 1.44MB Sealed 32321-US picture

Vintage Staples 3.5 Floppy Diskettes, 9 DS/HD IBM 1.44MB Sealed 32321-US

$8.99



Vintage Teac FD-505 5.25

Vintage Teac FD-505 5.25" 3.5" Combo Drive 19307571-00

$199.99



Vintage Iwill XA100 Plus Super Socket 7 Motherboard + K6-III 450 + 896mb READ picture

Vintage Iwill XA100 Plus Super Socket 7 Motherboard + K6-III 450 + 896mb READ

$179.99