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 §
getaddrinfo
getnameinfo
Socket API §
Client:
socket
connect
send
,recv
close
Server:
socket
(creates fd)bind
listen
accept
upon receiving connections (creates another fd)send
,recv
close