[CentOS] BIND Setup Issue

Sun Mar 10 13:08:40 UTC 2013
Austin Einter <austin.einter at gmail.com>

Dear All
My resolv.conf looks as below

search netcloudjobs.com
nameserver 10.0.0.1
nameserver 8.8.8.8
nameserver 127.0.0.1

I do not have any error logs.

I just did one modification in named.conf.

*allow-query     { localhost; 10.0.0.1/24; 10.0.0.254/24; };

*
*Line I modified to

*
*allow-query     { any; };*


With this change, now I am able to ping to ns1.netcloudjobs.com . Problem
is 50% resolved.

Kindly guide me if allow-query any is right thing to do or not.

Next, how do I make sure www.netcloudjobs.com should resolve to my IP.

In my BIND server the, the command "dig www.netcloudjobs.com" gives below
output.

[root at ip-173-201-189-43 named]#
[root at ip-173-201-189-43 named]#
[root at ip-173-201-189-43 named]# dig www.netcloudjobs.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.2 <<>> www.netcloudjobs.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16461
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;www.netcloudjobs.com.          IN      A

;; ANSWER SECTION:
www.netcloudjobs.com.   86400   IN      A       173.201.189.43

;; AUTHORITY SECTION:
netcloudjobs.com.       86400   IN      NS      ns2.netcloudjobs.com.
netcloudjobs.com.       86400   IN      NS      ns1.netcloudjobs.com.

;; ADDITIONAL SECTION:
ns1.netcloudjobs.com.   86400   IN      A       173.201.189.43
ns2.netcloudjobs.com.   86400   IN      A       173.201.189.43

;; Query time: 0 msec
;; SERVER: 10.0.0.1#53(10.0.0.1)
;; WHEN: Sun Mar 10 06:04:00 2013
;; MSG SIZE  rcvd: 122

[root at ip-173-201-189-43 named]#

Can I assume that my configuration is proper? As just now I am able to ping
ns1.netcloudjobs.com from remote machines, so pinging to
www.netcloudjobs.com will take some more time.

Please guide me...

Austin




On Sun, Mar 10, 2013 at 5:36 PM, Reindl Harald <h.reindl at thelounge.net>wrote:

>
>
> Am 10.03.2013 12:57, schrieb Austin Einter:
>
> first why do you not post you error-messages
> inputs, outputs or whatever instead only your config?
>
>
> > And my reverse zone file looks as
> >
> > *$TTL 86400
> > @  IN     SOA     ns1.netcloudjobs.com.     root.netcloudjobs.com. (
> >         2021071001  ;Serial
> >         3600        ;Refresh
> >         1800        ;Retry
> >         604800      ;Expire
> >         86400       ;Minimum TTL
> > )
> >
> > @       IN      NS      ns1.netcloudjobs.com.
> > @       IN      NS      ns2.netcloudjobs.com.
> > ns1     IN  A   173.201.189.43
> > ns2     IN  A   173.201.189.43
> > 43      IN      PTR     ns1.netcloudjobs.com.
> > 44      IN      PTR     ns2.netcloudjobs.com.
>
> why does you PTR-file contain A-records?
>
>