Create hash table to preserve all the <ip_addr, hostname> pairs

If we need to figure out the hostname of one IP address, first check
the <ip_addr, hostname> hash table. If not found in the hash table,
then use the `getnameinfo` syscall.
Add procedures for cname (hostname alias) type DNS packets.