• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2390
  • Last Modified:

configuring bind , problem with zone files

Hello Experts,

I'm trying to configure DNS on  a server system which is running red hat linux 7.1 and BIND version is 9.2
I want to configure DNS on a private network (not connected to the internet) .
My ultimate goal is to configure Sendmail as my intranet mail server .

Following files have been created after going through couple of DNS HOWTO's on the internet .
Though the named is starting its producing  error messages related to the zone files .

extract from /var/log/messages
----------------------------------------------------------------------------------------------
 dns_master_load: zone.1.168.192:2: unexpected end of line
 dns_master_load: zone.1.168.192:2: unexpected end of input
 dns_zone_load: zone 1.168.192.IN-ADDR.ARPA/IN: loading master file
 zone.1.168.192: unexpected end of input

 dns_master_load: zone.sirisha.net:2: unexpected end of line
 dns_master_load: zone.sirisha.net:2: unexpected end of input
 dns_zone_load: zone sirisha.net/IN: loading master file
 zone.sirisha.net: unexpected end of input

-------------------------------------------------------------------------------------


I tried to know what's the error on second line of /var/named/zone.sirisha.net & /var/named/zone.1.168.192
but unable to make out.........

After starting named , I tried to check whether its working properly or not by issuing

----------------------------------
$nslookup sirisha.net (enter)

no servers connected;; timed out
----------------------------------

Please provide solution for this problem , thanks in advance !!!!

Following is the complete listing of all files responsible for DNS .


/etc/named.conf
***************
----------------------------------------------------------------------
options {
      directory "/var/named";
        fake-iquery yes;
      query-source address * port 53;
        forward first;
forwarders {
             169.168.1.14     ;IP address of  ISP DNS
           };
         
};

//
// a caching only nameserver config
//
zone "." IN {
      type hint;
      file "named.ca";
};

zone "sirisha.net"  IN {
                      type master;
                      file "zone.sirisha.net";
                   };
     

zone "1.168.192.IN-ADDR.ARPA" {
        type master ;
        file "zone.1.168.192";
       };

zone "0.0.127.IN-ADDR.ARPA" {
      type master;
      file "zone.127.0.0";
       };

; code below was part of standard red hat linux 7.1 distribution

key "key" {
      algorithm hmac-md5;
        secret "jZKBJXTvBvJlQfwSbhdJONIFuPQovxXSqIWyAkwQahfpRfjKL0PjSzGbBDZl";
 };

----------------------------------------------------------------------------------

/var/named/zone.sirisha.net
***************************
----------------------------------------------------------------------------------
@TTL 3D;
@       IN       SOA master.sirisha.net. root.sirisha.net. (
       1;
       10800;
       3600;
       604800;
       86400);

       IN NS       master.sirisha.net.

master IN A       192.168.1.1
oracle IN A           192.168.1.1

;mail   IN A 192.168.124.10
;www    IN A 192.168.124.10
;news   IN A 192.168.124.10

localhost      IN A       127.0.0.1
pinnacle      IN A       192.168.1.2

-------------------------------------------------------------------------------

/var/named/zone.1.168.192
*************************
-------------------------------------------------------------------------------
@TTL  86400
@  IN   SOA      master.sirisha.net.   root.sirisha.net. (
                                     1;
                                     10800;
                                     3600;
                                     604800;
                                     86400);
          IN         NS       master.sirisha.net.
1          IN         PTR      master.sirisha.net.
2           IN     PTR      pinnacle.sirisha.net.      

-------------------------------------------------------------------------------
/var/named/zone.127.0.0
***********************
-------------------------------------------------------------------------------
$TTL      86400
@       IN      SOA     master.sirisha.net.  root.sirisha.net.  (
                                      1;
                                      10800;
                                      3600;
                                      604800;
                                      86400); Minimum
              IN      NS      localhost.
1       IN      PTR     localhost.

--------------------------------------------------------------------------------
/etc/resolv.conf
****************
----------------------------------------------------------------------------------

search sirisha.net
nameserver 192.168.1.1

----------------------------------------------------------------------------------
/var/log/messages
*****************
--------------------------------------------------------------------------------
Mar 13 14:57:39 sirisha named[1278]: starting BIND 9.1.0 -u named
Mar 13 14:57:39 sirisha named[1278]: using 1 CPU
Mar 13 14:57:39 sirisha named: named startup succeeded
Mar 13 14:57:39 sirisha named[1280]: loading configuration from '/etc/named.conf'
Mar 13 14:57:39 sirisha named[1280]: the default for the 'auth-nxdomain' option is now 'no'
Mar 13 14:57:39 sirisha named[1280]: option 'fake-iquery' is obsolete
Mar 13 14:57:39 sirisha named[1280]: no IPv6 interfaces found
Mar 13 14:57:39 sirisha named[1280]: listening on IPv4 interface lo, 127.0.0.1#53
Mar 13 14:57:39 sirisha named[1280]: listening on IPv4 interface eth0, 192.168.1.1#53
Mar 13 14:57:39 sirisha named[1280]: dns_master_load: zone.1.168.192:2: unexpected end of line
Mar 13 14:57:39 sirisha named[1280]: dns_master_load: zone.1.168.192:2: unexpected end of input
Mar 13 14:57:39 sirisha named[1280]: dns_zone_load: zone 1.168.192.IN-ADDR.ARPA/IN: loading master file zone.1.168.192: unexpected end of input
Mar 13 14:57:39 sirisha named[1280]: dns_master_load: zone.sirisha.net:2: unexpected end of line
Mar 13 14:57:39 sirisha named[1280]: dns_master_load: zone.sirisha.net:2: unexpected end of input
Mar 13 14:57:39 sirisha named[1280]: dns_zone_load: zone sirisha.net/IN: loading master file zone.sirisha.net: unexpected end of input
Mar 13 14:57:39 sirisha named[1280]: running

------------------------------------------------------------------------------------
0
crazygeek
Asked:
crazygeek
1 Solution
 
bobgunzelCommented:
Change @TTL to $TTL

Bob Gunzel
0
 
crazygeekAuthor Commented:
Thanks .......... I'm so stupid I should have checked for typos ....thanks once again bobgunzel!!!
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now