One can read books about how to set up a name server. Suggest searching more.
Have you looked at man bind and (I think) man named.conf?
Have you registered a domain name? DNS is about resolving domain names to IP addresses. If you don't have a domain name, you don't need DNS. If you have a domain name, see if your registrar provides a DNS service, then you won't need to configure one.
That said, in my experience, working with the distributed named.conf (and yes...back it up, always, before making any changes), and a good tutorial (mine was the O'Reilly book "DNS and BIND", I'm not sure if all that's available on line, but it or its equivalent probably is) will serve you better to learn BIND/DNS than an "example" named.conf. Just
In particular, look at how to define a zone and what needs to be defined within it...and don't hesitate to ask specifics if/when you get stuck.