Net-Address-Ethernet - Fails on SunOS with non-fully-qualified NODENAME

Posted on Tue Jul 11 21:27:15 2006 by cmv
Fails on SunOS with non-fully-qualified NODENAME
Martin-
Thanks for the quick fix for the PATH problem. Here is another suggestion.

On Sun workstations, if you set your name by using a non-Fully-Qualified-Domain-Name (FQDN) in the /etc/nodename file, then Net::Address::Ethernet will fail doing the arp, since the arp table has FQDNs in it.
As an example: /etc/nodename contains "snoopy" $ arp snoopy snoopy (192.11.45.19) -- no entry $ arp snoopy.myfqdn.com snoopy.myfqdn.com (123.45.67.89) at 1:2:3:4:5 permanent published

Many folks use non-FQDNs this way when they want to use dhcp to acquire an IP address, and have their nodename used on whatever domain they plug into.

The fix for this should be pretty easy. Instead of using Sys::Hostname to get the hostname, I would suggest using Net::Domain.
Here's a quick example: $ perl -e 'use Net::Domain hostfqdn; print hostfqdn(),"\n"' snoopy.myfqdn.com
I don't know if this would break anything on other platforms though.
Direct Responses: 2624 | Write a response