The getnetbyaddr function gets the network record given its ADDRESS and ADDRESSTYPE.
getnetbyaddr ADDRESS, ADDRESSTYPE