Introducing Domain Naming System (DNS)
In the previous section, we learned to add the DHCP server to our Raspberry Pi cluster. This was done mainly so that each Raspberry Pi in our cluster could be identified by a unique IP address. Now, as you can imagine, the bigger our cluster grows, the harder it is going to be to remember the IP address of each Raspberry Pi. Humans find it hard to remember long sequences of numbers, which is what the IP addresses are. But there is a way by which we can easily connect to different nodes without having to remember their IP addresses.
This method is called a Domain Name System (DNS). Its basic function is to translate IP addresses into words so that it becomes easier for us to remember. For example, the DNS server will translate the IP address 192.168.5.43
into raspberrypi.org
and vice versa to make it easier to connect to. Indeed, this is what happens on the Internet. Each website has an IP address behind it.
When you type a URL into your browser, your...