Date: Mon, 28 Mar 2011 16:01:27 +0400 From: Peter Andreev <andreev.peter@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: reverse dns in bind9 Message-ID: <AANLkTikU7AYiQMCjhaJ0noSf6cbiVGdz59Hny-X1c5Sy@mail.gmail.com> In-Reply-To: <AANLkTim7qBzqFyaYHLn0stb7omimakU9mU_9Gg8eNU4n@mail.gmail.com> References: <AANLkTik9mnTd_h7Yz7XBK8zpLcdoGjxyMHqfHJv1TVno@mail.gmail.com> <201103280506.p2S56S5i052834@mail.r-bonomi.com> <AANLkTim7qBzqFyaYHLn0stb7omimakU9mU_9Gg8eNU4n@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
2011/3/28 Tim Dunphy <bluethundr@gmail.com> > Hello, > > Thanks for your reply! > > I took your advice and removed that line from resolv.conf and added > it into /etc/named/named.conf > > Now it looks like this > > // RFC 1912 > zone "localhost" { type master; file "master/localhost-forward.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" { type master; file "master/localhost-forward.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"; }; > And 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, > >> > >> I am attempting to setup reverse dns in bind 9 under freebsd... this is > >> in an attempt to allow mysql to work a little easier with DNS > >> resolution. > >> > >> In my /etc/named/named.conf file I have the following: > >> > >> // RFC 1912 > >> zone "localhost" { 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 > >> @ IN SOA ns1.summitnjhome.com. bluethundr.gmail.com. ( > >> 201103271 ; Serial, todays date + todays serial > >> 8H ; Refresh > >> 2H ; Retry > >> 4W ; Expire > >> 1D) ; Minimum TTL > >> NS ns1.summitnjhome.com. > >> > >> summitnjhome.com. > >> 42 PTR LCENT01.summitnjhome.com. > >> 43 PTR LCENT02.summitnjhome.com. > >> 44 PTR LBSD2.summitnjhome.com. > >> 45 PTR LCENT02.summitnjhome.com. > >> 46 PTR LCENT03.summitnjhome.com. > >> 47 PTR LCENT04.summitnjhome.com. > >> 23 PTR virtcent01.summitnjhome.com. > >> 24 PTR virtcent02.summitnjhome.com. > >> 21 PTR virtcent03.summitnjhome.com. > >> 26 PTR virtcent04.summitnjhome.com. > >> 27 PTR virtcent05.summitnjhome.com. > >> 28 PTR virtcent06.summitnjhome.com. > >> 29 PTR virtcent07.summitnjhome.com. > >> 30 PTR virtcent08.summitnjhome.com. > >> 31 PTR virtcent09.summitnjhome.com. > >> 32 PTR virtcent10.summitnjhome.com. > >> 33 PTR virtcent11.summitnjhome.com. > >> 34 PTR virtcent12.summitnjhome.com. > >> 35 PTR virtcent13.summitnjhome.com. > >> 36 PTR virtcent14.summitnjhome.com. > >> 37 PTR virtcent15.summitnjhome.com. > >> 38 PTR virtcent16.summitnjhome.com. > >> 39 PTR virtcent17.summitnjhome.com. > >> 40 PTR virtcent18.summitnjhome.com. > >> 41 PTR virtcent19.summitnjhome.com. > >> > >> > >> and my /etc/resolv.conf looks like this: > >> > >> domain summitnjhome.com > >> nameserver 192.168.1.44 > >> nameserver 4.2.2.2 > >> > >> zone "1.168.192.in-addr.arpa" { type master; file > >> "/etc/named/master/summitnjhome-reverse.db" > >> }; > > > > the 'zone' line you show should *NOT* be in resolv.conf at all. > > this line should be in the named.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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikU7AYiQMCjhaJ0noSf6cbiVGdz59Hny-X1c5Sy>