Shared Internet apply /etc/hosts

Solution 1:

You will need to install a DNS server. If you need a DNS server that automatically synthesizes answers from the contents of /etc/hosts, use dnsmasq.