A nameserver is a computer with software that stores and/or distribute zone files and receive and send queries directed to a given domain.
Nameservers are required to perform the translation of domain names to IP addresses, which makes the domain reachable by visitors.