[Ilugc] DNS problem

  • From: babu_jayapaul@xxxxxxxxx (babu jayapaul)
  • Date: Thu, 3 Jun 2004 00:00:44 -0700 (PDT)

Dear Friends,

I have configured DNS in my fedora core1 server, to
configur mail server. my questions are:

1) is it necessary to specify the host name in
/etc/hosts and in /etc/resolve in the server.

it is not pinging when i issue

ping netserver.stjosephs.com which is my host name
ping: unknown hostname

[root@netserver root]# host netserver.stjosephs.com
Host netserver.stjosephs.com not found: 3(NXDOMAIN)

please give me a solution


1) the below is my /etc/named/named.conf file

// generated by named-bootconf.pl

options {
        directory "/var/named";
        forwarders { 197.168.0.254 };
        forward only;
        /*
         * 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; };
};

zone "stjosephs.com" IN {
     type master;
     file "db.joseph.zone";
     allow-update { none; };
};

zone "250.0.168.197.in-addr.arpa" IN {
      type master;
      file "db.revjoseph.zone";
      allow-update { none; };
};

include "/etc/rndc.key";
------------------------------------------------------
2)the following is my /var/named/db.joseph.zone file

$TTL    86400
@  IN SOA netserver.stjosephs.com.
root.netserver.stjosephs.com. (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

@                        IN NS  netserver.stjosepsh.com.
@                        IN A           197.168.0.250

netserver.stjosephs.com A       197.168.0.250
www                     A       197.168.0.250
ftp                     A       197.168.0.250

@                       MX 10 netserver.stjosephs.com.
netserver               MX 10 netserver.stjosephs.com.  
---------------------------------------------------------
3) my reverse zone file /var/named/db.revjoseph.zone

$TTL    86400
@       IN      SOA netserver.joseph.com.
root.netserver.joseph.com.  (
                                      1997022700 ;
Serial
                                      28800      ;
Refresh
                                      14400      ;
Retry
                                      3600000    ;
Expire
                                      86400 )    ;
Minimum
              IN      NS      netserver.joseph.com.

1.0.168.197       IN      PTR     netsever.joseph.com.
----------------------------------------------------------




        
                
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ ;

Other related posts: