Added comments to new createDNS method, added type hinting to the $rec parameter including some code formatting.