I've got DNSMasq and an Apache2+PHP web server running on my Raspberry Pi. It's plugged into my LAN.Here's my /etc/dnsmasq.conf:#/etc/dnsmasq.confdomain-neededbogus-privdomain=domain.netexpand-hostslocal=/domain.net/listen-address=127.0.0.1listen-address=192.168.1.10listen-address=192.168.2.10bind-interfacesserver=8.8.8.8server=8.8.4.4server=208.67.220.220This is my hosts file:127.0.0.1       localhost::1             localhost ip6-localhost ip6-loopbackff02::1         ip6-allnodesff02::2         ip6-allrouters127.0.1.1       pi1127.0.0.1       amazon.com127.0.0.1       www.amazon.com127.0.0.1       example.net127.0.0.1       www.example.netAnd this is my output when running dig for amazon.com (on a LAN Client): ;; ANSWER SECTION:www.amazon.com.     574 IN  CNAME   www.cdn.amazon.com.www.cdn.amazon.com. 300 IN  CNAME   d3ag4hukkh62yn.cloudfront.net.d3ag4hukkh62yn.cloudfront.net. 46 IN    A   54.192.88.114d3ag4hukkh62yn.cloudfront.net. 46 IN    A   54.192.88.56d3ag4hukkh62yn.cloudfront.net. 46 IN    A   54.192.88.90d3ag4hukkh62yn.cloudfront.net. 46 IN    A   54.192.88.33It obviously doesn't see my web server running on 127.0.0.1. For some reason, however, when I run lynx www.amazon.com on the Pi running DNSMasq, it correctly shows the page I want it to redirect to. It just doesn't work for the clients of the LAN. Anyone have any ideas?
Hosts not working in DNSMasq?
apache httpd;dns;raspberry pi;dnsmasq