Changeset 63


Ignore:
Timestamp:
11/28/05 20:27:30 (18 years ago)
Author:
bas
Message:

hexls:

  • Fixed a bug in hostname resolving

And an new version ;-)

Location:
trunk/pxeconfig
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/pxeconfig/Changelog

    r62 r63  
     10.6.4:
     2 - Fixed a bug in hexls with non resolving hostnames
     3   Reported by:  Ole Holm Nielsen
     4
    150.6.3:
    26 - Added hostname lookup feature to hexls. If succes it will display the
  • trunk/pxeconfig/DEBIAN/control

    r62 r63  
    66Depends: python
    77Architecture: i386
    8 Version: 0.6.3-1
     8Version: 0.6.4-1
    99Description: utilities to boot computers with PXE-enabled network cards
  • trunk/pxeconfig/hexls

    r62 r63  
    4949
    5050                        ipaddr = '%d.%d.%d.%d' % (digit1, digit2, digit3, digit4)
    51                         hostname = socket.gethostbyaddr(ipaddr)
     51                        try:
     52                                hostname = socket.gethostbyaddr(ipaddr)
     53                        except socket.herror, detail:
     54                                hostname = ( detail[1], 'dummy' )
     55
    5256                        if hostname:
    5357                                print '%s => %s => %s' % (f, ipaddr, hostname[0])
Note: See TracChangeset for help on using the changeset viewer.