Hi 

The configuration files,

The zone files

1. /var/named/xyz.com

$TTL 86400
xyz.com.        IN SOA mail.xyz.com.
root.mail.xyz.com. (
                        156 ; Serial
                        28800 ;Refresh
                        14400        ;Retry
                        3600000 ; Expire
                        86400 ) ; Minimum
                        NS mail.xyz.com.
                        MX        10 intranet.xyz.com.
mail                        A 192.168.1.1
intranet                A 192.168.1.2
        

2. /var/named/192.168.1

$ORIGIN
$TTL 86400; 1 day
1.168.192.in-addr.arpa.        IN SOA        
mail.xyz.com. root.mail.xyz.com. (
                                80: Serial
                                10800 ; Refresh
                                900 ; retry
                                604800        ;
Miminum
                                )
                                NS       
mail.xyz.com.
$ORIGIN 1.168.192.in-addr.arpa.
2         PTR        intranet.xyz.com.
1        PTR        mail.xyz.com.


3. /etc/named.conf

// generated by named-bootconf.pl

options {
        directory "/var/named";
        listen-on { 192.168.1.1; 127.0.0.1; };
        allow-query { 192.168.1.2; 127.0.0.1; };
        forward first;
        forwarders { 202.54.12.15; 202.54.1.30; };

        /*
         * If there is a firewall between you and
nameservers you want
         * to talk to, you might need to uncomment the
query-source
         * directive below.  Previous versions of BIND
always asked
         * questions using port 53, but BIND 8.1 uses
an unprivileged
         * port by default.
         */
         query-source address * port 53;
};

// 
// a caching only nameserver config
// 
controls {
        inet 127.0.0.1 allow { localhost; } keys {
rndckey; };
};

zone "." IN {
        type hint;
        file "named.ca";
};

zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "named.local";
        allow-update { none; };
};

include "/etc/rndc.key";

zone "xyz.com" IN {
        type master;
        file "xyz.com";
        notify yes;
};

zone "1.168.192.in-addr.arpa" IN {
        type master;
        file "192.168.1";
        notify        yes;
};



Regards
Ashok


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to