<font face="courier new,monospace"><br>Hi,<br><br><br>I tried to associate hostnames with IPs in the hosts file.<br>And it worked...<br><br>With my linux gate, declaring hosts (mac,ip,name,lease) in one line works perfectly...<br>

I don&#39;t understand why it won&#39;t with FreeBSD...<br><br>Whatever, sorry for the disturbance :)<br><br><br>Cheers,<br><br clear="all"></font><span style="font-family: courier new,monospace;">Samuel Martín Moro</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">{EPITECH.} tek5</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">CamTrace S.A.S</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;"></span><br><br><div class="gmail_quote">On Mon, Sep 20, 2010 at 2:56 PM, Samuel Martín Moro <span dir="ltr">&lt;<a href="mailto:faust64@gmail.com">faust64@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><font face="courier new,monospace"><br>Hi<br><br><br>I&#39;m trying to replace my gate with a qnap ts-509.<br>

I installed mfsBSD, based on FreeBSD-8.1-RELEASE amd64.<br>I just had to build some pre-configured packages, add ipfw, ipfw_nat and libalias to boot modules.<br>

<br>Everything&#39;s working just fine, except for the DNS (dnsmasq-2.55,1.tbz, rebuilt with config files and ipfw startup script)<br><br>DHCP works perfectly. But DNS does not...<br>Even on the (soon-to-be) gateway, so I&#39;m assuming ipfw is not related to the problem (in doubt, I still send it)<br>



root@phi /real/tmp : ipfw list<br>00001 check-state<br>00002 allow ip from any to any via lo0<br>00003 allow tcp from any to any established<br>00500 allow ip from any to any via bge1<br>00666 allow tcp from me to any out via bge0 setup uid root keep-state<br>



65535 deny ip from any to any<br>(since bge0 is not plugged, it&#39;s quite empty...)<br><br><br></font><font></font><font face="courier new,monospace"><br>root@phi /real/tmp : ./dig @localhost alpha.faust-network<br><br>



; &lt;&lt;&gt;&gt; DiG 9.6.2-P2 &lt;&lt;&gt;&gt; alpha.faust-network<br>;; global options: +cmd<br>;; Got answer:<br>;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: REFUSED, id: 13068<br>;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0<br>



<br>;; QUESTION SECTION:<br>;alpha.faust-network.           IN      A<br><br>;; Query time: 13 msec<br>;; SERVER: 127.0.0.1#53(127.0.0.1)<br>;; WHEN: Mon Sep 20 13:41:15 2010<br>;; MSG SIZE  rcvd: 37<br><br><br>basically, my configuration is the following:<br>



<br>cache-size=1024<br>local-ttl=15<br>log-dhcp<br>interface=bge1<br>bind-interfaces<br>no-negcache<br>dhcp-range=10.254.254.1,10.254.254.254,255.0.0.0,1h<br>dhcp-boot=pxelinux.0,omega,10.42.42.45          # PXE TFTP server (omega)<br>



dhcp-option=3,10.242.42.254                     # gateway<br>dhcp-option=19,1                                # option ip-forwarding off<br>dhcp-option=23,42                               # TTL de 42<br>dhcp-option=44,10.242.42.254                    # Wins Server<br>



dhcp-option=45,10.242.42.254                    # NetBios DDS<br>dhcp-option=46,8                                # NetBios Node Type<br>dhcp-option=option:ntp-server,213.186.41.134,88.191.79.242,193.55.167.2,80.65.235.4,194.57.191.1,91.121.45.45<br>



dhcp-script=/usr/local/bin/dhcp_action<br>domain=faust-network<br>expand-hosts<br>bogus-nxdomain=64.94.110.11     #get SSL certificate from another CAServer<br>localmx<br>selfmx<br>conf-file=/usr/local/etc/blocklist.conf # filter adds, shits, facebook, ...<br>



<br><br>my resolv.conf:<br>nameserver 10.242.42.254 #localhost, priv addr<br>nameserver 8.8.4.4<br>domain faust-network<br><br><br>I already have a dnsmasq working perfectly on my current gate (ArchLinux-x86_64).<br>I copied the configuration, making a few changes (<a href="http://192.168.0.0/24" target="_blank">192.168.0.0/24</a> -&gt; <a href="http://10.0.0.0/8" target="_blank">10.0.0.0/8</a>).<br>



So, I don&#39;t understant what I&#39;m doing wrong....<br>Any idea?<br><br><br><br>Cheers,<br><br>---<br><br></font><font face="courier new,monospace"></font><span style="font-family: courier new,monospace;">Samuel Martín Moro</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">{EPITECH.} tek5</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">CamTrace S.A.S</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;"></span><br>
</blockquote></div><br>