Thanks for the timely reply. I looked into the --cname, but as it turns out it is only successful if the mapping (<a href="http://abc.def.com">abc.def.com</a>) is present in /etc/hosts file. <div><br></div><div>My /etc/resolv.conf has a list of DNS servers along with dnsmasq(which is running on localhost).</div>
<div><br></div><div>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?</div>
<div><br></div><div>I hope I've explained the problem statement clearly. </div><div><br></div><div>Thanks.</div><br><div class="gmail_quote">On Tue, May 31, 2011 at 8:14 PM, Ed W <span dir="ltr"><<a href="mailto:lists@wildgooses.com">lists@wildgooses.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 31/05/2011 15:20, Aman Gujaria wrote:<br>
> Hi,<br>
><br>
> My test setup has a client that tries to open <a href="http://www.mysitexyz.com" target="_blank">www.mysitexyz.com</a><br>
</div>> <<a href="http://www.mysitexyz.com/" target="_blank">http://www.mysitexyz.com/</a>>, but this inturn needs to be mapped to<br>
> <a href="http://abc.def.com" target="_blank">abc.def.com</a> <<a href="http://abc.def.com" target="_blank">http://abc.def.com</a>> which is the actual domain name for my<br>
<div class="im">> server. Is there any way to do this mapping using dnsmasq?<br>
><br>
> Any ideas would be greatly appreciated.<br>
<br>
</div>In dns terms, such an alias is called a CNAME. I don't use this feature<br>
of dnsmasq, but I believe you can make it serve such records using the<br>
--cname command, eg see here:<br>
<a href="http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html" target="_blank">http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html</a><br>
<br>
Good luck<br>
<br>
Ed W<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div><br>