Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2011 09:36:24 -0400
From:      Tim Dunphy <bluethundr@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: reverse dns in bind9
Message-ID:  <AANLkTinUU=jtWSW1vaTtSS=V7wy08hinL5GF1GF7dkTX@mail.gmail.com>
In-Reply-To: <AANLkTikU7AYiQMCjhaJ0noSf6cbiVGdz59Hny-X1c5Sy@mail.gmail.com>
References:  <AANLkTik9mnTd_h7Yz7XBK8zpLcdoGjxyMHqfHJv1TVno@mail.gmail.com> <201103280506.p2S56S5i052834@mail.r-bonomi.com> <AANLkTim7qBzqFyaYHLn0stb7omimakU9mU_9Gg8eNU4n@mail.gmail.com> <AANLkTikU7AYiQMCjhaJ0noSf6cbiVGdz59Hny-X1c5Sy@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <andreev.peter@gmail.com> wr=
ote:
> 2011/3/28 Tim Dunphy <bluethundr@gmail.com>
>
>> 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 <bonomi@mail.r-bonomi.com=
>
>> wrote:
>> >
>> >> Date: Mon, 28 Mar 2011 00:19:26 -0400
>> >> From: Tim Dunphy <bluethundr@gmail.com>
>> >> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinUU=jtWSW1vaTtSS=V7wy08hinL5GF1GF7dkTX>