Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dnsmasq localise-queries doesn not work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 455

PostPosted: Sun Mar 08, 2009 9:54 pm    Post subject: dnsmasq localise-queries doesn not work Reply with quote

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 ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum