i wouldn't object to special casing to make win32 happy. though i find it odd that things are working ok as-is on my win32 box and on others. is there any info i can give you about my win32 setup that would help? fwiw your script outputs the following on my box:
localhost is at 127.0.0.1 127.0.0.1 is named bramble bramble is at 10.0.1.2 10.0.1.2 is named bramble
