Introduction to Computer Networks
COMP 429
DNS Query: (name, type)
Resource record: (name, value, type, TTL)
Types:
- A (domain, ipv4 address)
 - AAAA (domain, ipv6 address)
 - NS (domain, nameserver)
 - CNAME (hostname, canonical name)
 - MX (domain, canonical name of mailserver and priority)
 
DNS §
getaddrinfogetnameinfo
Socket API §
Client:
socketconnectsend,recvclose
Server:
socket(creates fd)bindlistenacceptupon receiving connections (creates another fd)send,recvclose