DNS is an application layer protocol. It is an essential protocol for the smooth running of internet. Domain names like youtube.com, gmail.com etc., are user friendly but not router friendly. IP addresses are router friendly but not friendly for humans to remember them easily. DNS resolves IP addresses if names are given.