Sponsored Content
Top Forums UNIX for Advanced & Expert Users Get an error while trying to start DNS server Post 302578608 by Srvesh on Friday 2nd of December 2011 03:10:25 AM
Old 12-02-2011
Here is my named.conf ... have a look

Now it is line 58 as i have made some changes ... I have enter the logs ....
Code:
[root@linux3 log]# service named start
Starting named: 
Error in named configuration:
/etc/named.conf:58: when using 'view' statements, all zones must be in views
[FAILED]
[root@linux3 log]# 


[root@linux3 log]# cat /etc/named.conf 
//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver 
// (as a localhost DNS resolver only). 
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on 
// caching-nameserver package upgrade.
//
options {
        listen-on port 53 { 127.0.0.1; 10.141.228.58; };
        listen-on-v6 port 53 { ::1; };
        directory       "/var/named";
        pid-file        "/var/run/named/named.pid";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";

        // Those options should be used carefully because they disable port
        // randomization
        // query-source    port 53;
        // query-source-v6 port 53;

        allow-query     {localhost; 10.141.228.0/24; };
        allow-query-cache { localhost; };
};
logging {
  channel default_file  { file "/var/log/named/default.log"  versions 3 size 5m; severity dynamic; print-time yes; };
  channel general_file  { file "/var/log/named/general.log"  versions 3 size 5m; severity dynamic; print-time yes; };
  channel database_file { file "/var/log/named/database.log" versions 3 size 5m; severity dynamic; print-time yes; };
  channel notify_file   { file "/var/log/named/notify.log"   versions 3 size 5m; severity dynamic; print-time yes; };
  channel queries_file  { file "/var/log/named/queries.log"  versions 3 size 5m; severity dynamic; print-time yes; };
  channel network_file  { file "/var/log/named/network.log"  versions 3 size 5m; severity dynamic; print-time yes; };

  category default  { default_file; };
  category general  { general_file; };
  category database { database_file; };
  category notify   { notify_file; };
  category queries  { queries_file; };
  category network  { network_file; };
};
//logging {
//        channel default_debug {
//                file "data/named.run";
//                severity dynamic;
//        };
//}
view localhost_resolver {
        match-clients      { localhost; };
        match-destinations { localhost; };
        recursion yes;
        include "/etc/named.rfc1912.zones";
};
zone "loop.net" IN {
        type master;
        file "loop.net.zone";
        allow-update { none; };
};
zone "228.141.10.in-addr.arpa" IN {
        type master;
        file "228.141.10.rev";
        allow-update { none; };
};


Last edited by Scott; 12-02-2011 at 09:10 AM.. Reason: Code tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

X-server fatal error,KDM refused to start

I was working with network configuration utility of linux first by netconfig command and then in GUI.It refused to take the new IP address I assigned and GUI utility raised an exception.aAfter that I tried to luanch the application for a couple of times but it was not starting.I rebooted. Now it... (1 Reply)
Discussion started by: callmedctr
1 Replies

2. UNIX for Advanced & Expert Users

DNS on DG-UX server

I'm trying to configure a DG-UX server to be a DNS client (connecting to a Novell DNS server). I've configured /etc/resolv.conf to reflect the settings for the DNS server, but I don't know what else to do to get the server to resolve DNS names. Any ideas? (2 Replies)
Discussion started by: soliberus
2 Replies

3. UNIX for Dummies Questions & Answers

setup a DNS server for my redhat server

Using Redhat Linux Enterprise AS 4 can someone teach me how to setup a dns server for my webserver? i've registered a domainname at mydomain.com but when i type in the domain i register i cannot enter to my webserver. someone told me that it is related with the DNS setting on my server. i've... (2 Replies)
Discussion started by: kaixiang88
2 Replies

4. Solaris

Solaris DNS Client For Microsoft DNS Server

hey guys, how to add soalris box as a microsoft DNS Client ? and how to register in the microsoft DNS ?? i managed to query from the DNS server after adding /etc/resolve.conf and editing /etc/nsswitch.conf but i need to register the soalris server (dns Client) into Microsoft DNS automatically.... (3 Replies)
Discussion started by: mduweik
3 Replies

5. Solaris

To Shut down the server. Do the Maintainance and Start Up the server

Hello All I just want to know how to Shut Down the Solaris Machines( Servers ) for Maintainance and then Start Up the Machines ( Servers ) . I think I will have to Log In as root to do that . Also how do i Check if all the services running on that server before shut down are running... (6 Replies)
Discussion started by: supercops
6 Replies

6. UNIX for Advanced & Expert Users

DNS server choice: Windows DNS vs Linux BIND

I'd like to get some opnions on choosing DNS server: Windows DNS vs Linux BIND comparrsion: 1) managment, easy of use 2) Security 3) features 4) peformance 5) ?? I personally prefer Windows DNS server for management, it supports GUI and command line. But I am not sure about security... (2 Replies)
Discussion started by: honglus
2 Replies

7. Red Hat

DNS Service not Start in RHEL 6.4 64 bit

Hi All, I am new to linux and i am configuring DNS server but while i restart service it shows below given error. Please help to solve this error. # /etc/init.d/named restart Stopping named: Generating /etc/rndc.key: ... (2 Replies)
Discussion started by: Chintanghanti
2 Replies

8. UNIX and Linux Applications

Is it mandatory or not to stop/start Applcation server ehen Restarting Database Server?

Good afternoon I need your help please. There is a Mantenance Windos which needs to Restart de Database Server 192.x.x.97 to set up some configuration Is it mandatory or not to stop/start Applcation server that runs in 192.x.x.95 ? Is it mandatory or not to stop/start apache and Tomcat?... (3 Replies)
Discussion started by: alexcol
3 Replies

9. Solaris

DNS client added to DNS server but not working

Hi, We have built a new server (RHEL VM)and added that IP/hostname into dns zone configs file on DNS server (Solaris 10). Reloaded the configuration using and added nameserver into resolv.conf on client. But when I am trying nslookup, its not getting resolved. The nameserver is not able to... (8 Replies)
Discussion started by: snchaudhari2
8 Replies

10. UNIX for Beginners Questions & Answers

SunBlade 150 can't start openwin: /usr/openwin/bin/xinit: Server error.

Hi. I have a Microsystems SunBlade 150 shell# cat /etc/release Solaris 8 2/02 s28s_u7wos_08a SPARC shell# uname -a SunOS HOSTNAME 5.8 Generic_108528-14 sun4u sparc SUNW,Sun-Blade-100 shell# prtconf -F /pci@1f,0/SUNW,m64B@13:m640 When I join to the only account the server try to... (5 Replies)
Discussion started by: siegroup
5 Replies
named.conf(4)						     Kernel Interfaces Manual						     named.conf(4)

NAME
named.conf - named configuration file SYNOPSIS
/etc/named.conf DESCRIPTION
This file is the default configuration (or boot) file for the named server. This configuration file replaces the named.boot file. The named daemon reads the start-up file when the named daemon starts and when receiving signal SIGHUP. The statements in the named.conf file tell the named daemon what type of server it is, which domains (or zones of authority) it has author- ity over, and where to get the data for initially setting up its database. The name server first needs to know the root name server, which is the authority server for the network. The root name server is estab- lished in the named.conf file by specifying the root server filename (named.ca) as the cache for this name server. The named.conf file consists of a sequence of statements terminated by a semi-colon (;) and comments. Comments can be specified by any of the following: A number sign (#) The C-style /* and */ characters. The C++-style // characters The types of named.conf statements are as follows: Defines a named IP address matching list for access control and other uses. Includes a file. Specifies key information for use in authentication and authorization. Specifies the information that the server logs and the des- tination of the log messages. Controls global server configuration options and sets defaults for other statements. Sets certain configu- ration options on a per-server basis. Defines a zone. The logging and options statements can occur only one time in a configuration file. Many statements contain a block of substatements, which are also terminated with a semicolon. See the BIND Configuration Guide in the Tru64 UNIX HTML Documentation Library for additional information about the description and format of each statement. For examples of various ways of using the named.conf file, see the EXAMPLES section. See named(8) for additional named.conf file directives. Note that the named daemon does not provide other hosts with the information contained in a cache file. Cache files are usually used for listing the name servers for domains higher than the local domain. These data files can have any name. However, for convenience in maintaining the named database, they are generally given names in the fol- lowing form: /etc/named.extension. The general format of named data files is described in /etc/named.*. EXAMPLES
The following examples show the various ways to use the named start-up file. The /etc/named.conf file for venus, a master name server (that which used to be called a primary name server), contains these entries: // Configuration (boot) file for master name server // zone "." { type hint; file "/etc/named.ca"; }; zone "abc.aus.osf.com" { type master; file "/etc/named.abcdata"; }; zone "xyz.aus.osf.com" { type master; file "/etc/named.xyzdata"; }; zone "201.9.192.in-addr.arpa" { type master; file "/etc/named.abcrev"; }; zone "100.114.128.in-addr.arpa" { type master; file "/etc/named.xyzrev"; }; zone "0.0.127.in-addr.arpa" { type master; file "/etc/named.local"; }; In this example, the master name server is venus and the Internet address is 192.9.201.1. The /etc/named.conf file for kronos, a slave name server (that which used to be called a secondary name server), contains these entries: // Configuration (boot) file for slave name server // zone "." { type hint; file "/etc/named.ca"; }; zone "abc.aus.osf.com" { type slave; file "192.9.201.2"; masters { 192.9.201.1; }; }; zone "xyz.aus.osf.com" { type slave; file "192.9.201.2"; masters { 192.9.201.1; }; }; zone "201.9.192.in-addr.arpa" { type slave; file "192.9.201.2"; masters { 192.9.201.1; }; }; zone "100.114.128.in-addr.arpa" { type slave; file "192.9.201.2"; masters { 192.9.201.1; }; }; zone "0.0.127.in-addr.arpa" { type master; file "/etc/named.local"; }; In this example the slave name server is kronos and the Internet address is 192.9.201.2. The /etc/named.conf file for hera, a caching-only name server contains these entries: // Configuration (boot) file for caching-only server // zone "." { type hint; file "/etc/named.ca"; }; zone "0.0.127.in-addr.arpa" { type master; file "/etc/named.local"; }; The /etc/named.conf file for titan, an IPv4 master name server that accepts secure dynamic updates from new clients, contains these entries: It is recommended that you do not enable authentication for IPv6 zones that are dynamically updated. See bind_manual_setup(7) for more information. // Configuration (boot) file for master name server // include "/etc/namedb/named.keys"; zone "." { type hint; file "/etc/named.ca"; }; zone "dyn.aus.osf.com" { type master; file "/etc/named.dyndata"; allow-update { dynnet-titan_update }; }; zone "201.9.192.in-addr.arpa" { type master; file "/etc/named.dynrev"; allow-update { dynnet-titan_update }; }; zone "0.0.127.in-addr.arpa" { type master; file "/etc/named.local"; }; The allow-update substatement in the zone statements specifies that dynamic updates to the master DNS database are successful only if they are signed with the dynnet-titan_update key. The include statement calls named.keys, a file that is read/writable only by superuser and contains the following key configuration statement: key dynnet-titan_update { algorithm hmac-md5; secret "YYnTXprDocI5qizxfT9/A8f9Ec+eq0Oo1DGXvks/Q27kTMMYKw==" }; You generate a private key for the secret substatement by using the dnskeygen command. See the Network Administration guide or bind_manual_setup(7) for more information about configuring secure dynamic updates. RELATED INFORMATION
Commands: named(8), dnskeygen(1). Files: named.star(4). Networking: bind_manual_setup(7). Network Administration delim off named.conf(4)
All times are GMT -4. The time now is 09:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy