In which file we need to setup DNS server?

Hi, to setup the DNS server, we need to put the name of the dns server as “nameserver” in /etc/resolv.conf file on each respective host. But on the DNS server, in which file we need to write all the entries about the names and the IPs?

Hello @Ashu27, Typically you have to add zone files in dns server which is usually located in /var/named or /etc/named if you want to act as Authoritative name server.

https://lpic2.unix.nl/ch08s02.html