From owner-freebsd-questions@FreeBSD.ORG Mon Mar 28 13:36:27 2011 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 9D015106564A for ; Mon, 28 Mar 2011 13:36:27 +0000 (UTC) (envelope-from bluethundr@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 515BE8FC15 for ; Mon, 28 Mar 2011 13:36:27 +0000 (UTC) Received: by gxk28 with SMTP id 28so1314058gxk.13 for ; Mon, 28 Mar 2011 06:36:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=C4klBSx48Ql0BltgnOBm8qJkJj2+epLhHvADouPmAFo=; b=luF4RYTTUwP3wombeDxY5PBRijXd+1Fr/sEJViGmcLAOwMkPVSAsxlL+9XNhbnFUK3 BV/3ikhQRNzMdATrzDLvUIhW9/ASP90BU0JWSt7PQ1iU0b0qGLoU0O7iD5ceFZEG7bpy M+s25mEX9hVqRDmRav5VZ76z43m65n874vImU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=R23kgZwR8Sc80rX7RRCI5xRjJJ7/vEkynaX6F6MM1T2b9jTtjROf/M+GDMtNVxo5C0 3JPi4YMsn0Qm5jPWsagP8iusY2Bfc4rJVBDS1xcSVV9zEFEVLFyQBGxkr8fbmepPp3PU +cm71gKIg8vmE5Wbo7dfZu15P5cpW+LHLZWws= MIME-Version: 1.0 Received: by 10.42.152.198 with SMTP id j6mr2329736icw.316.1301319384958; Mon, 28 Mar 2011 06:36:24 -0700 (PDT) Received: by 10.42.222.7 with HTTP; Mon, 28 Mar 2011 06:36:24 -0700 (PDT) In-Reply-To: References: <201103280506.p2S56S5i052834@mail.r-bonomi.com> Date: Mon, 28 Mar 2011 09:36:24 -0400 Message-ID: From: Tim Dunphy To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: reverse dns in bind9 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: Mon, 28 Mar 2011 13:36:27 -0000 Ok guys.. I totally get it now and sorry for the misunderstanding. I'm really looking forward to getting this working but might not get a chance to try this again until this evening. time. where does it go? don't know but I certainly appreciate yourst! On Mon, Mar 28, 2011 at 8:01 AM, Peter Andreev wr= ote: > 2011/3/28 Tim Dunphy > >> Hello, >> >> =A0Thanks for your reply! >> >> =A0I took your advice and removed that line from resolv.conf and added >> it into /etc/named/named.conf >> >> =A0Now it looks like this >> >> =A0// RFC 1912 >> zone "localhost" =A0 =A0 =A0 =A0{ type master; file "master/localhost-fo= rward.db"; >> }; >> zone "127.in-addr.arpa" { type master; file "master/localhost-reverse.db= "; >> }; >> zone "255.in-addr.arpa" { type master; file "master/empty.db"; }; >> zone "192.in-addr.arpa" { type master; file >> "master/summitjnhome-reverse.db"; }; >> > > Robert said that you should replace 192.in-addr.arpa with > 1.168.192.in-addr.arpa in your named.conf. > > Your named.conf should be look like the following: > > zone "localhost" =A0 =A0 =A0 =A0{ type master; file "master/localhost-for= ward.db"; > }; > zone "127.in-addr.arpa" { type master; file "master/localhost-reverse.db"= ; > }; > zone "255.in-addr.arpa" { type master; file "master/empty.db"; }; > zone "1.168.192.in-addr.arpa" { type master; file > "master/summitjnhome-reverse.db"; }; > > > >> =A0And I did a restart of both network and named but the issue remains: >> >> >> LBSD2# host 192.168.1.44 >> Host 44.1.168.192.in-addr.arpa. not found: 3(NXDOMAIN) >> >> >> On Mon, Mar 28, 2011 at 1:06 AM, Robert Bonomi >> wrote: >> > >> >> Date: Mon, 28 Mar 2011 00:19:26 -0400 >> >> From: Tim Dunphy >> >> Subject: reverse dns in bind9 >> >> >> >> Hello, >> >> >> >> =A0I am attempting to setup reverse dns in bind 9 under freebsd... th= is is >> >> =A0in an attempt to allow mysql to work a little easier with DNS >> >> =A0resolution. >> >> >> >> =A0In my /etc/named/named.conf file I have the following: >> >> >> >> // RFC 1912 >> >> zone "localhost" =A0{ type master; file "master/localhost-forward.db"= ; }; >> >> zone "127.in-addr.arpa" { type master; ile >> "master/localhost-reverse.db"; }; >> >> zone "255.in-addr.arpa" { type master; file "master/empty.db"; }; >> >> zone "192.in-addr.arpa" { type master; file >> "master/summitjnhome-reverse.db"; }; >> >> zone "summitnjhome.com" { type master; file "master/summitnjhome.db"; >> }; >> >> >> >> >> >> My master/summitnjhome.com looks like the following: >> > >> > For starters, this should be in "master/summitnjhome-reerse.db" >> >> >> >> $TTL 3D >> >> @ =A0 =A0 =A0 IN =A0 =A0 =A0SOA =A0 =A0 ns1.summitnjhome.com. bluethu= ndr.gmail.com. ( >> >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 201103271 ; Serial, t= odays date + todays serial >> >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 8H =A0 =A0 =A0; Refre= sh >> >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 2H =A0 =A0 =A0; Retry >> >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 4W =A0 =A0 =A0; Expir= e >> >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1D) =A0 =A0 ; Minimum= TTL >> >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 NS =A0 =A0 =A0ns1.sum= mitnjhome.com. >> >> >> >> summitnjhome.com. >> >> 42 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 LCENT01.summitnjhome.com. >> >> 43 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 LCENT02.summitnjhome.com. >> >> 44 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 LBSD2.summitnjhome.com. >> >> 45 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 LCENT02.summitnjhome.com. >> >> 46 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 LCENT03.summitnjhome.com. >> >> 47 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 LCENT04.summitnjhome.com. >> >> 23 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent01.summitnjhome.co= m. >> >> 24 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent02.summitnjhome.co= m. >> >> 21 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent03.summitnjhome.co= m. >> >> 26 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent04.summitnjhome.co= m. >> >> 27 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent05.summitnjhome.co= m. >> >> 28 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent06.summitnjhome.co= m. >> >> 29 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent07.summitnjhome.co= m. >> >> 30 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent08.summitnjhome.co= m. >> >> 31 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent09.summitnjhome.co= m. >> >> 32 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent10.summitnjhome.co= m. >> >> 33 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent11.summitnjhome.co= m. >> >> 34 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent12.summitnjhome.co= m. >> >> 35 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent13.summitnjhome.co= m. >> >> 36 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent14.summitnjhome.co= m. >> >> 37 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent15.summitnjhome.co= m. >> >> 38 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent16.summitnjhome.co= m. >> >> 39 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent17.summitnjhome.co= m. >> >> 40 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent18.summitnjhome.co= m. >> >> 41 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 virtcent19.summitnjhome.co= m. >> >> >> >> >> >> and my /etc/resolv.conf looks like this: >> >> >> >> domain =A0summitnjhome.com >> >> nameserver =A0 =A0 192.168.1.44 >> >> nameserver =A0 =A0 4.2.2.2 >> >> >> >> zone "1.168.192.in-addr.arpa" { type master; file >> >> "/etc/named/master/summitnjhome-reverse.db" >> >> }; >> > >> > the 'zone' line =A0you show should *NOT* be in resolv.conf at all. >> > this line should be in the =A0named.conf file *instead* of the one for >> > the '192.in-addr.arpa' zone. >> > >> >> then I restart both named and the network service >> >> >> >> and yet if I were to try forward resolution: >> >> >> >> LBSD2# host sum1 >> >> sum1.summitnjhome.com is an alias for LCENT01.summitnjhome.com. >> >> LCENT01.summitnjhome.com has address 192.168.1.42 >> >> >> >> >> >> and then reverse resolution: >> >> >> >> LBSD2# host 192.168.1.42 >> >> Host 42.1.168.192.in-addr.arpa. not found: 3(NXDOMAIN) >> >> >> >> I have no luck. Any thoughts on this? >> > >> > see above. >> > >> > >> > >> > >> >> >> >> -- >> GPG me!! >> >> gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to " >> freebsd-questions-unsubscribe@freebsd.org" >> > > > > -- > -- > AP > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > --=20 GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B