1,105,310 Community Members

Urgent...I can't configure a dns (fedora 16)

Member Avatar
Josef16
Newbie Poster
1 post since Mar 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

This is the error

root@localhost /]# service named restart 
Restarting named (via systemctl):  Job failed. See system logs and 'systemctl status' for details.
[FAILED]
[root@localhost /]# service named status
rndc: connect failed: 127.0.0.1#953: connection refused
named.service - LSB: start|stop|status|restart|try-restart|reload|force-reload DNS server  
Loaded: loaded (/etc/rc.d/init.d/named)   
Active: failed since Sat, 17 Mar 2012 19:22:36 -0600; 7s ago     
Process: 3775 ExecStop=/etc/rc.d/init.d/named stop (code=exited, status=0/SUCCESS)

Process: 4252 ExecStart=/etc/rc.d/init.d/named start (code=exited, status=2/INVALIDARGUMENT)  
CGroup: name=systemd:/system/named.service

[root@localhost /]# 

In the named.conf I have this:

options {
listen-on port 53 { 127.0.0.1; any; };
listen-on-v6 port 53 { ::1; };
directory   "/var/named";
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";
allow-query     { localhost; any; };
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;

/* Path to ISC DLV key */

bindkeys-file "/etc/named.iscdlv.key";
managed-keys-directory "/var/named/dynamic";
};

logging {
        channel default_debug 
{
                file "data/named.run";
                severity dynamic;
        };
};

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

zone "prueba.com" IN {
    type master;
    file "db.prueba.com";
};

zone "1.168.192.in.addr.arpa" IN {
    type master;
    file "1.168.192.in.addr.arpa.zone";
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";

In the prueba.com file I have this:

$TTL 86400
@   
IN  SOA prueba.com. root.prueba.com. (
            1;
            28800;
            7200;
                604800;
            86400;
            )

@       IN  NS      prueba.com.             
@               IN  A           192.168.1.2     

And in the 1.168.192.in.addr.arpa.zone I have this:

$TLL 86400
@   
IN  SOA prueba.com. root.prueba.com. (
            1;
            28800;
            7200;
            604800;
            86400;
            )
@   IN  NS  prueba.com. 
2   IN  PTR prueba.com.

I need to resolve this if someone knows how to fix it please reply!!!!!!

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: