[Dnsmasq-discuss] Domain name resolve redirection with dnsmasq.

Hongyi Zhao hongyi.zhao at gmail.com
Thu Oct 8 03:15:52 BST 2015


Hi Simon,

I want to do the domain name resolve redirection as follows:

fonts.googleapis.com-------------->fonts.lug.ustc.edu.cn
ajax.googleapis.com--------------->ajax.lug.ustc.edu.cn
themes.googleusercontent.com------>google-themes.lug.ustc.edu.cn
fonts.gstatic.com----------------->fonts-gstatic.lug.ustc.edu.cn

In detail, when I query the ip for domain "fonts.googleapis.com", then
I want to let dnsmasq to redirect this query for giving me the query
result of domain "fonts.lug.ustc.edu.cn". And so on.

Considering the the `address=' method will only assign the static
address for the specific domains, I don't want to use the following
method for my case:

address=/fonts.googleapis.com/the-ip-of-fonts.lug.ustc.edu.cn

Is it possiable for me to the trick with dnsmasq?

Reards
-- 
Hongyi Zhao <hongyi.zhao at gmail.com>
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences
GnuPG DSA: 0xD108493



More information about the Dnsmasq-discuss mailing list