<div dir="ltr">Wouldn't host-record work?<br><br>host-record=<a href="http://mydomain.org">mydomain.org</a>,<span style="font-size:12.8000001907349px">192.168.0.101<br><br>If the hosts on your network are configured to use your dnsmasq instance for DNS, then they will get back </span><span style="font-size:12.8000001907349px">192.168.0.101 when doing a lookup for <a href="http://mydomain.org">mydomain.org</a>.</span><div><span style="font-size:12.8000001907349px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 14, 2015 at 4:09 PM, Thiago Farina <span dir="ltr"><<a href="mailto:tfransosi@gmail.com" target="_blank">tfransosi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
First of all, sorry for asking here in this mailing list. I tried to<br>
find the answer googling for it, but failed.<br>
<br>
I didn't find a way to search the archives of this mailing list<br>
either, so hence I'm posting here.<br>
<br>
I hope someone can help me.<br>
<br>
This was probably asked and answered many times before, so if you have<br>
points for it, please send it my way.<br>
<br>
I'm trying to configure dnsmasq as my dns server in my home network.<br>
<br>
I have a cisco dpc3825 router (ip 192.168.0.1) that connects to the<br>
internet, an Ubuntu server where I want to run dnsmasq on ip<br>
192.168.0.101, and a bunch of other machines in the network.<br>
<br>
I know how to change the router to point to ubuntu server as a primary<br>
dns. That is not the problem. The problem is the configuration of<br>
dnsmasq.conf.<br>
<br>
I have a nginx running and serving a static site on this ubuntu<br>
server. What I want is that dnsmasq translate to the other machines in<br>
my network when they type <a href="http://mydomain.org" target="_blank">mydomain.org</a> to the ip address of my ubuntu<br>
server which is running nginx, so they should be able to see my site<br>
in my local network.<br>
<br>
I believe the configuration on the router should be something like:<br>
<br>
Primary DNS: 192.168.0.101<br>
Secondary DNS: 8.8.8.8<br>
Ternary DNS: 8.8.4.4<br>
<br>
<br>
But what about dnsmasq.conf? How should I configure it?<br>
<br>
Currently it has the following content:<br>
$ cat /etc/dnsmasq.conf<br>
listen-address=127.0.0.1<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Thiago Farina<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>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">daV.e<br><br>"The reasonable man adapts himself to the conditions that surround him... The unreasonable man adapts surrounding conditions to himself... All progress depends on the unreasonable man." Bernard Shaw</div>
</div>