IPv4 and IPv6 are protocols that assign numeric addresses to devices to enable communication and routing of information across the internet. DNS is a hierarchical system that maps human-friendly domain names to these numeric IP addresses. It uses caching and time-to-live values to improve efficiency. Local networks can be merged using bridges, which expose internal addresses, or NAT, which hides internal addresses behind a single external address.