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?
Shared Internet apply /etc/hosts
dnshostsinternet-sharing
Related Question
- How to include the own zone file in /etc/com.apple.named.proxy.conf
- MacOS – Internet Sharing handing out wrong DNS server address
- IOS – Adding hosts entry to iOS in absence of DNS
- MacOS – Keyboard Maestro: How to write to /etc/hosts file
- Is Ethernet sharing over WiFi from a Mac supposed to hand out 192.168.2.1 as the DNS server
- MacOS – Force system to use local hosts file before DNS (OS X El Capitan)
- How to override DNS resolver ordering while connected to L2TP VPN
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.