The nameserver is the server that holds a domain’s DNS records and responds with authoritative answers to resolvers asking about it.
A nameserver is an authoritative DNS server that maintains a zone’s database and answers queries about records in that zone [1]. Unlike a recursive resolver, which caches responses, an authoritative nameserver has the original, definitive information for the domain.