?
Solved

configuring bind , problem with zone files

Posted on 2003-03-13
2
Medium Priority
?
2,310 Views
Last Modified: 2010-05-18
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
Comment
Question by:crazygeek
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
bobgunzel earned 500 total points
ID: 8135090
Change @TTL to $TTL

Bob Gunzel
0
 

Author Comment

by:crazygeek
ID: 8158431
Thanks .......... I'm so stupid I should have checked for typos ....thanks once again bobgunzel!!!
0

Featured Post

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question