You're posting on the server room, so the most obvious way is to enable the DNS role with a couple of mouse clicks. If you're on client is probably better to enable WSL and use one of the dozens of choices available on linux Then it depends what you're trying to do
Create and execute for my private / for my personnal use only. For this is necessary to buy a specific material / hardware ??
@winwinok , I use right off my DNS on my NAS system and run from my server DNS into my NAS and then NAS take care my outgoing and incoming network... Also, I add extra DynDNS services to do something extra feature and package.. Remember as long it works in your own flavors.. ATGPUD2003
There's a difference between using a nas because it's already there, and buying a useless raspberry just to complicate the topology of the network. As long as you have a home server / htpc / any machine running h24, just use it, then you can choose from a vast variety of options, Linux/ windows/ bad based. Running on bare metal/vm/wsl/container or whatever.