Shared Internet apply /etc/hosts

dnshostsinternet-sharing

How do I make those who connect to me via a shared internet connection use my /etc/hosts file? I was thinking something along the lines of creating a DNS server, but I was hoping maybe there is a simpler solution?

Best Answer

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.