javeree Guru
Joined: 29 Jan 2006 Posts: 455
|
Posted: Sun Mar 08, 2009 9:54 pm Post subject: dnsmasq localise-queries doesn not work |
|
|
My setup:
main pc = 'Zeus' with ppp0 for access to internet and eth0..eth4 for different subnets.
in /etc/conf.d/dnsmasq :
Quote: | DNSMASQ_OPTS="--domain-needed \
--bogus-priv \
--local=/mynet/ \
--domain=mynet \
--resolv-file=/etc/dnsmasq-resolv.conf \
--query-port=${DNSMASQPORT} \
--localise-queries \
-i eth0 -i eth1 -i eth2 -i eth3 -i eth4 -i eth0 \
-F 192.168.0.50,192.168.0.60,255.255.255.0 \
-F 192.168.1.50,192.168.1.60,255.255.255.0 \
-F 192.168.2.50,192.168.2.60,255.255.255.0 \
-F 192.168.3.50,192.168.3.60,255.255.255.0 \
-F 192.168.4.50,192.168.4.60,255.255.255.0 \
-F 192.168.9.50,192.168.9.60,255.255.255.0" |
in /etc/hosts :
Quote: | 127.0.0.1 localhost
192.168.0.1 Zeus.mynet Zeus
192.168.1.1 Zeus.mynet Zeus
192.168.2.1 Zeus.mynet Zeus
192.168.3.1 Zeus.mynet Zeus
192.168.4.1 Zeus.mynet Zeus
|
Some interfaces are not always used. Specifically when eth0 is not used, I have a problem: in spite of --localise-queries, when I ping Zeus on a PC from interface eth3, I get
Quote: | PING Zeus.mynet (192.168.0.1) 56(84) bytes of data.
| whereas Zeus should have resolved to 192.168.3.1
So what else could be needed to have --localise-queries work correctly ? |
|