Changeset 63 for trunk/pxeconfig
- Timestamp:
- 11/28/05 20:27:30 (18 years ago)
- Location:
- trunk/pxeconfig
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pxeconfig/Changelog
r62 r63 1 0.6.4: 2 - Fixed a bug in hexls with non resolving hostnames 3 Reported by: Ole Holm Nielsen 4 1 5 0.6.3: 2 6 - Added hostname lookup feature to hexls. If succes it will display the -
trunk/pxeconfig/DEBIAN/control
r62 r63 6 6 Depends: python 7 7 Architecture: i386 8 Version: 0.6. 3-18 Version: 0.6.4-1 9 9 Description: utilities to boot computers with PXE-enabled network cards -
trunk/pxeconfig/hexls
r62 r63 49 49 50 50 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 52 56 if hostname: 53 57 print '%s => %s => %s' % (f, ipaddr, hostname[0])
Note: See TracChangeset
for help on using the changeset viewer.