Switch to using custom Record type for passing IP/name pairs

Closes inhies/cjdcmd/#21