[Dnsmasq-discuss] Feature request: name--to-IP answer depending on IP-address of client

Илья Евсеев ilya_evseev at mail.ru
Wed Jun 7 16:33:40 BST 2006


   Hi, Simon and all folks!
dnsmasq provides "localise-query" that returns name-to-IP resolution depending on IP-address of NIC that receives the request.

This feature works very well except situations
when single NIC serves multiple IP's using IP-aliases.

In that situations DNS-server should translate names
using IP-address of requestor.

Consider following example (under FreeBSD):
ifconfig xl0 192.168.1.1 netmask 255.255.255.0
ifconfig xl0 217.170.93.1 netmask 255.255.255.0 alias

/etc/hosts:
192.168.1.1  vpn
217.170.93.1 vpn

Expected result:
Client 217.170.93.100 on xl0 interface requests translation of "vpn"
and receives "217.170.93.1" as the answer.
Client 192.168.1.100 on the same interface requests translation of "vpn"
and receives "192.168.1.1".

WBR, Ilya



More information about the Dnsmasq-discuss mailing list