From: Matthieu Racine (m.racine_at_free.fr)
Date: Fri 07 Mar 2003 - 14:41:53 GMT
Hello,
I've configured a bind9 server which give response function of the 
sender's IP.
example :
My client machine :
eth0   => 192.198.0.1
eth0:1 => 192.168.1.1
resolv.conf : nameserver 192.168.0.50
 > nslookup toto
response : 192.168.0.10
resolv.conf : nameserver 192.168.1.50
 > nslookup toto
response : 192.168.1.10
OK, works great.
Now, if the client is a vserver, having multiples ip addresses :
eth0:toto    => 192.168.0.1
eth0:toto1   => 192.168.1.1
resolv.conf : nameserver 192.168.0.50
 > nslookup toto
response : 192.168.0.10
resolv.conf : nameserver 192.168.1.50
 > nslookup toto
response : 192.168.0.10    ====> HUG, should be 192.168.1.10
so I did :
 > tethereal -i eth0 -n port 53
on the DNS :
0.000000   192.168.0.1 -> 192.168.0.50 DNS Standard query A toto.my.net
0.000337   192.168.0.50 -> 192.168.0.1 DNS Standard query response A
192.168.0.10
So my question is :
Why does the vserver use his first IP available when doing UDP, or only
DNS?, requests ?
Is there a workaround ?
Note :
I did not see anything strange in my routing tables...
Thanks,
-- Matthieu Racine