This is how my named.conf looks like

options
{
        /* make named use port 53 for the source of all queries, to allow
         * firewalls to block all ports except 53:
         */
        query-source    port 53;
        query-source-v6 port 53;
        listen-on port 53 { any; };
view "internal"
{
/* This view will contain zones you want to serve only to "internal" clients
   that connect via your directly attached LAN interfaces - "localnets" .
 */
        match-clients           { localnets; };
        match-destinations      { localnets; };
        recursion yes;
        // all views must contain the root hints zone:
        include "/etc/named.root.hints";
        // include "named.rfc1912.zones";
        // you should not serve your rfc1912 names to non-localhost clients.

        // These are your "authoritative" internal zones, and would probably
        // also be included in the "localhost_resolver" view above :
        zone "lnmiit.ac.in" {
                type master;
                allow-query { any; };
                file "server.zone";
        };
        zone "2.22.172.in-addr.arpa." {
                type master;
                allow-query { any; };
                file "server.local";
        };
};



and my zones files looks like this

$TTL 3D
@       IN      SOA     nfs.lnmiit.ac.in.       [email protected]. (
                                2009081218      ; Serial
                                2H              ; Refresh
                                10M             ; Retry
                                1D              ; Expire
                                1D )            ; Minimum
@       IN      NS      nfs.lnmiit.ac.in.
212     PTR             www.lnmiit.ac.in.
212     PTR             proxy2.lnmiit.ac.in.
211     PTR             proxy.lnmiit.ac.in.


$TTL 3D
@       IN      SOA     nfs.lnmiit.ac.in.       [email protected]. (
                        2009081217      ; serial (d. adams)
                        2H              ; refresh
                        10M             ; retry
                        1D              ; expiry
                        1D )            ; minimum

@               IN NS           nfs.lnmiit.ac.in.
nfs             IN A            172.22.2.195
proxy           IN A            172.22.2.211
proxy2          IN A            172.22.2.212
www             IN A            172.22.2.212


i am not able to dig my servers. error comes while dig 

dig www.lnmiit.ac.in

; <<>> DiG 9.3.3rc2 <<>> www.lnmiit.ac.in
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 34447
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.lnmiit.ac.in.              IN      A

;; Query time: 16 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Aug 12 21:16:09 2009
;; MSG SIZE  rcvd: 34


Can someone help me with it where i am wrong and why there is SERVFAIL in the 
answers.. 



Reply via email to