My solution is dnsmasq, what get zones from hosts file.Tutorial video:
https://www.youtube.com/watch?v=P2kiinwg00c
Configuration
#copy wifi idip link show#create domain.confcd /etc/dnsmasq.d/>example.com#add to conf fileno-dhcp-interface=enP4p65s0bogus-privdomain=example.comexpand-hostslocal=/example.com/domain-neededno-resolvno-pollserver=127.0.0.1server=8.8.8.8