Thanks for the timely reply. I looked into the --cname, but as it turns out it is only successful if the mapping (abc.def.com) is present in /etc/hosts file.
My /etc/resolv.conf has a list of DNS servers along with dnsmasq(which is running on localhost). Is there any way to give the mapping, without specifying the target dns name in /etc/hosts file? I want the target dns name(once its mapped by dnsmasq) to be resolved by other DNS servers mentioned in my /etc/resolv.conf file. Is it possible? I hope I've explained the problem statement clearly. Thanks. On Tue, May 31, 2011 at 8:14 PM, Ed W <li...@wildgooses.com> wrote: > On 31/05/2011 15:20, Aman Gujaria wrote: > > Hi, > > > > My test setup has a client that tries to open www.mysitexyz.com > > <http://www.mysitexyz.com/>, but this inturn needs to be mapped to > > abc.def.com <http://abc.def.com> which is the actual domain name for my > > server. Is there any way to do this mapping using dnsmasq? > > > > Any ideas would be greatly appreciated. > > In dns terms, such an alias is called a CNAME. I don't use this feature > of dnsmasq, but I believe you can make it serve such records using the > --cname command, eg see here: > http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html > > Good luck > > Ed W > > _______________________________________________ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss >