hello floks,

i have a DNS server running bind-9.7.3 on a linux box, 3 differents networks 
connected to 3 ethernet cards:

eth0:   192.168.1.1/24
eth1:   172.16.1.1/24
eth2:   10.140.27.1/24

i would like to have the same DNS resolving the good address from the good 
network, example:

from the 192.168.1.1/24 network:                host mydns.example.com = 
192.168.1.10
from the 172.16.1.1/24 network:         host mydns.example.com = 172.16.1.10
from the 10.140.27.1/24 network:                host mydns.example.com = 
10.140.27.10

but actually my problem is that if i run ` host mydns.example.com` from any 
network the answer is similar to:

from eth0 network (192.168.1.1/24)
$ host mydns.example.com
mydns.example.com has address 10.140.27.10
mydns.example.com  has address 192.168.1.10
mydns.example.com  has address 172.16.1.10


how to resolve this ? i would like to have the same results but in the order 
that i can ping the server with i's hostname:

from eth0 network (192.168.1.1/24)
$ host mydns.example.com
mydns.example.com  has address 192.168.1.10
mydns.example.com has address 10.140.27.10
mydns.example.com  has address 172.16.1.10

or from eth1 network (172.16.1.1/24)
$ host mydns.example.com
mydns.example.com  has address 172.16.1.10
mydns.example.com  has address 192.168.1.10
mydns.example.com has address 10.140.27.10

and from eth2 network (10.140.27.1/24)
$ host mydns.example.com
mydns.example.com has address 10.140.27.10
mydns.example.com  has address 172.16.1.10
mydns.example.com  has address 192.168.1.10

thank you very much

Banana
_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to