The UN publishes a list of recognised member states. ISO maintains a list of codes. IANA uses that list to determine whether a country code TLD is valid. But that's the extent of the UN's involvement in the governance of the root zone.
Jon Postel, RFC 1591 (Domain Name System Structure and Delegation)