DNS can be considered something similar to a phone book. When you move from one location to another, your name stays the same, but your phone number may change. In order to point your name to the new phone number, you must contact the telephone service provider so they assign you the new phone number and update all directory information to reflect you as pointing to this new phone number.
In this way, the IP number can be compared to a phone number: When someone calls http://www.cpwebhosting.net, your ISP looks at the DNS server, and asks “how do I contact example.com?” The DNS server responds: “It can be found at 22.214.171.124”. As the Internet understands it, this can be considered the phone number for the server, which houses the http://www.cpwebhosting.net web site.
Click on the Link given below to More Details: