Results 1 to 1 of 1
I ran Code: dnsmasq --log-queries so that I can see the activity coming through when I tail syslog. Any requests made to a public web site (eg. google.com) show up ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-25-2006 #1
- Join Date
- Nov 2004
dnsmasq not routing internal requests correctly
Any requests made to a public web site (eg. google.com) show up in the log as being forwarded to the correct IP. And the correct page is displayed in the browser.
Any requests that match the contents of /etc/hostname, in this case dev1.homeserver.com, show up as multiple entries of:
Feb 25 14:35:35 dev1 dnsmasq: query[A] dev1.homeserver.com from 192.168.1.1
Feb 25 14:35:35 dev1 dnsmasq: /etc/hosts dev1.homeserver.com is 192.168.1.161
But if I request another host added into my /etc/hosts file, like test.homeserver.com, the log shows:
Feb 25 14:54:20 dev1 dnsmasq: query[A] test.homeserver.com from 192.168.1.1
Feb 25 14:54:20 dev1 dnsmasq: forwarded test.homeserver.com to 126.96.36.199
Feb 25 14:54:20 dev1 dnsmasq: reply test.homeserver.com is <NXDOMAIN>-IPv4
and a cannot find server or dns error is displayed.
Here is my /etc/hosts file:
127.0.0.1 localhost.localdomain localhost dev1 192.168.1.161 dev1.homeserver.com dev1 192.168.1.161 test.homeserver.com test
I don't understand why test.homeserver.com is not being redirected to the appropriate place. Is there anything else I have to configure for this tto work?