Domain Name Servers (DNS)
Where will we get the remote IP address that we need? Well, we could make a telephone call or send an email to the person at the other end—but that isn’t a practical method for many purposes. Instead we want to be able to mention an internet domain name. When you set up a computer to connect to the internet, you have to specify one or more IP addresses for a domain name server. Then your local operating system knows how to request an IP address for a given domain name, and the DNS server supplies it. Taking advantage of this low-level service, we will be able to construct a remote endpoint from a domain name and a port number.