From owner-freebsd-questions@FreeBSD.ORG Tue Sep 21 08:18:36 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4C76106564A for ; Tue, 21 Sep 2010 08:18:36 +0000 (UTC) (envelope-from faust64@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5AA138FC12 for ; Tue, 21 Sep 2010 08:18:36 +0000 (UTC) Received: by qwg5 with SMTP id 5so4627088qwg.13 for ; Tue, 21 Sep 2010 01:18:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=/r5hNLfEApN68MBKLwyqRduE7kBxSub47Ywbu9NYJBQ=; b=jUtQrXkRharZSlJcrz+nPbh6QR9q4d+3dcMoVfwxKO2+5Nm6XCKf6SmL3AQCFfoWJx Qc0/eNaaIjHVO+mIB4R+Js4u+F+IFYS3RNm/PS4sbZb5YZBlwAyjhWDeMpxxvc2Tz4QU PwFLGcJ5gzzoa8p+ieztIFLHUwhEdyEeoE6Rg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=FC/hQS/e64fuPVAVhflY9OKypSvAW8dH51McsLz3Jb7+bmLTWnztBjDNO1SeYTv/FW nP+gqo7MgVyAArQE3PiDHecmdm6jiIKEO4G+3ONOlqdNIf/4o/hwEYM2KV3knc/iIs4W ZSpq3C3JDMqIaRKm7GyB1sHWFdbQw+0GNqyo8= Received: by 10.224.116.18 with SMTP id k18mr6658967qaq.303.1285057115181; Tue, 21 Sep 2010 01:18:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.187.212 with HTTP; Tue, 21 Sep 2010 01:18:05 -0700 (PDT) In-Reply-To: References: From: =?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?= Date: Tue, 21 Sep 2010 10:18:05 +0200 Message-ID: To: dnsmasq-discuss@lists.thekelleys.org.uk, freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: dnsmasq, mfsBSD, status refused X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2010 08:18:36 -0000 Hi, I tried to associate hostnames with IPs in the hosts file. And it worked... With my linux gate, declaring hosts (mac,ip,name,lease) in one line works perfectly... I don't understand why it won't with FreeBSD... Whatever, sorry for the disturbance :) Cheers, Samuel Mart=EDn Moro {EPITECH.} tek5 CamTrace S.A.S On Mon, Sep 20, 2010 at 2:56 PM, Samuel Mart=EDn Moro wr= ote: > > Hi > > > I'm trying to replace my gate with a qnap ts-509. > I installed mfsBSD, based on FreeBSD-8.1-RELEASE amd64. > I just had to build some pre-configured packages, add ipfw, ipfw_nat and > libalias to boot modules. > > Everything's working just fine, except for the DNS (dnsmasq-2.55,1.tbz, > rebuilt with config files and ipfw startup script) > > DHCP works perfectly. But DNS does not... > Even on the (soon-to-be) gateway, so I'm assuming ipfw is not related to > the problem (in doubt, I still send it) > root@phi /real/tmp : ipfw list > 00001 check-state > 00002 allow ip from any to any via lo0 > 00003 allow tcp from any to any established > 00500 allow ip from any to any via bge1 > 00666 allow tcp from me to any out via bge0 setup uid root keep-state > 65535 deny ip from any to any > (since bge0 is not plugged, it's quite empty...) > > > > root@phi /real/tmp : ./dig @localhost alpha.faust-network > > ; <<>> DiG 9.6.2-P2 <<>> alpha.faust-network > ;; global options: +cmd > ;; Got answer: > ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 13068 > ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 > > ;; QUESTION SECTION: > ;alpha.faust-network. IN A > > ;; Query time: 13 msec > ;; SERVER: 127.0.0.1#53(127.0.0.1) > ;; WHEN: Mon Sep 20 13:41:15 2010 > ;; MSG SIZE rcvd: 37 > > > basically, my configuration is the following: > > cache-size=3D1024 > local-ttl=3D15 > log-dhcp > interface=3Dbge1 > bind-interfaces > no-negcache > dhcp-range=3D10.254.254.1,10.254.254.254,255.0.0.0,1h > dhcp-boot=3Dpxelinux.0,omega,10.42.42.45 # PXE TFTP server (omeg= a) > dhcp-option=3D3,10.242.42.254 # gateway > dhcp-option=3D19,1 # option ip-forwarding = off > dhcp-option=3D23,42 # TTL de 42 > dhcp-option=3D44,10.242.42.254 # Wins Server > dhcp-option=3D45,10.242.42.254 # NetBios DDS > dhcp-option=3D46,8 # NetBios Node Type > > dhcp-option=3Doption: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 > dhcp-script=3D/usr/local/bin/dhcp_action > domain=3Dfaust-network > expand-hosts > bogus-nxdomain=3D64.94.110.11 #get SSL certificate from another CASer= ver > localmx > selfmx > conf-file=3D/usr/local/etc/blocklist.conf # filter adds, shits, facebook,= ... > > > my resolv.conf: > nameserver 10.242.42.254 #localhost, priv addr > nameserver 8.8.4.4 > domain faust-network > > > I already have a dnsmasq working perfectly on my current gate > (ArchLinux-x86_64). > I copied the configuration, making a few changes (192.168.0.0/24 -> > 10.0.0.0/8). > So, I don't understant what I'm doing wrong.... > Any idea? > > > > Cheers, > > --- > > Samuel Mart=EDn Moro > {EPITECH.} tek5 > CamTrace S.A.S > >