From owner-freebsd-questions@FreeBSD.ORG Wed Oct 24 18:33:50 2007 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 EE87916A417 for ; Wed, 24 Oct 2007 18:33:50 +0000 (UTC) (envelope-from ecrist@secure-computing.net) Received: from snipe.secure-computing.net (snipe.secure-computing.net [209.240.66.149]) by mx1.freebsd.org (Postfix) with ESMTP id AC82213C491 for ; Wed, 24 Oct 2007 18:33:50 +0000 (UTC) (envelope-from ecrist@secure-computing.net) Received: by snipe.secure-computing.net (Postfix, from userid 1005) id 7BD5D1704B; Wed, 24 Oct 2007 13:33:34 -0500 (CDT) X-Spam-Checker-Version: SpamAssassin 3.1.8-ecrist_04252007.01-ecrist_04232007.1 (2007-02-13) on snipe.secure-computing.net X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED, DK_POLICY_SIGNSOME autolearn=unavailable version=3.1.8-ecrist_04252007.01-ecrist_04232007.1 Received: from [10.0.0.14] (unknown [74.95.66.25]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ecrist@secure-computing.net) by snipe.secure-computing.net (Postfix) with ESMTP id 2BE9917026; Wed, 24 Oct 2007 13:33:32 -0500 (CDT) In-Reply-To: <200710231700.l9NH0HKu043964@lurza.secnetix.de> References: <200710231700.l9NH0HKu043964@lurza.secnetix.de> Message-Id: <192D2FDC-31FE-44DB-9883-AA506BCCDCA2@secure-computing.net> From: Eric F Crist Date: Wed, 24 Oct 2007 13:33:27 -0500 To: freebsd-questions@FreeBSD.ORG, ecrist@secure-computing.net X-Mailer: Apple Mail (2.752.3) X-Sanitizer: Advosys mail filter MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: reverse DNS resolution... 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: Wed, 24 Oct 2007 18:33:51 -0000 Thanks to all for their help. I was ignoring the forward DNS, and =20 many things don't resolve reverse DNS unless there's a matching =20 forward DNS. duh. thanks! Eric Crist On Oct 23, 2007, at 12:00 PMOct 23, 2007, Oliver Fromme wrote: > Eric F Crist wrote: >> As I already stated, if I do a host 172.30.x.x, I get a the correct >> reverse resolution. dig works as well. What isn't working is the >> reverse resolution in certain command outputs, etc. > > Note that the DNS tools (host, nslookup, dig) use their > own resolver code, not the one from FreeBSD's libc, like > all other tools. That might explain the difference. > > Make sure that you have configured /etc/nsswitch.conf > and /etc/resolv.conf correctly. Also note that /etc/hosts > overrides DNS by default. > > You can use tcpdump to check if a reverse lookup request > is sent to the DNS server when the failure occurs, and > what the reply looks like. E.g. let this command run in > one terminal: > > # tcpdump -i tun0 -s 1500 -l -n -vvv udp port domain > > Add an -i option to specify the interface to listen on, > if you have multiple interfaces (e.g. -i fxp0). > > Then run the command (w, irc client, whatever) in another > terminal and watch the tcpdump output. Oh by the way, > I think the addresses in IRC are resolved by the servers, > not by the clients, so you would have to run the tcpdump > command on the IRC server (if it's an internal one to > which you can login and have root access). > > Best regards > Oliver > > --=20 > Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing =20 > b. M. > Handelsregister: Registergericht Muenchen, HRA 74606, =20 > Gesch=E4ftsfuehrung: > secnetix Verwaltungsgesellsch. mbH, Handelsregister: =20 > Registergericht M=FCn- > chen, HRB 125758, Gesch=E4ftsf=FChrer: Maik Bachmann, Olaf Erb, Ralf =20= > Gebhart > > FreeBSD-Dienstleistungen, -Produkte und mehr: http://=20 > www.secnetix.de/bsd > > PI: > int f[9814],b,c=3D9814,g,i;long a=3D1e4,d,e,h; > main(){for(;b=3Dc,c-=3D14;i=3Dprintf("%04d",e+d/a),e=3Dd%a) > while(g=3D--b*2)d=3Dh*b+a*(i?f[b]:a/5),h=3Dd/--g,f[b]=3Dd%g;} > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-=20 > unsubscribe@freebsd.org" ----- Eric F Crist Secure Computing Networks