Using -d and -x together will get both notations; using either alone will get only one notation; using neither will get dotted-decimal notation. These are only effective for IP addresses; Ethernet addresses are always given in hex-colon notation.
Note: For some reason (if we may so dignify it), much network info (such as the netmask) is denied to ordinary users, so this program must run as super-user. You should install it as:
install -c -s -o root -m 4755 ipad /binBUGS
1990/03 Written by John Chambers as "ipadr", an obsolete name.
1990/08 Ethernet -e option added by John Chambers, after Keith Dilsworth discovered how to extract an Ethernet address from Ultrix. Renamed to "addr" to reflect more general nature.
1990/09 HP version of -e option implemented by John Chambers.
1990/10 Point-to-point -p option added by John Chambers, to give the other address associated with such interfaces. E.g., "addr -i sl0 -p sl0" will give both IP addresses of a SLIP link.
1990/12 code added by John Chambers to notice IP addresses and generate the /etc/hosts entry by calling gethostbyaddr().