Jump to content

error in dns server


Recommended Posts

i'm currently studying DNS and have run in to the following errors in my centos6 VM. this is the tut i'm following [tutorial][1]


      [root@server1 named]# sudo service named start
    Starting named:
    Error in named configuration:
    zone example.tv/IN: has no NS records
    zone example.tv/IN: not loaded due to errors.
    _default/example.tv/IN: bad zone
    rev.example.tv:1: unknown RR type '1.168.192.in-addr.arpa.'
    zone 1.168.192.in-addr.arpa/IN: loading from master file rev.example.tv failed: unknown class/type
    zone 1.168.192.in-addr.arpa/IN: not loaded due to errors.
    _default/1.168.192.in-addr.arpa/IN: unknown class/type
    zone localhost.localdomain/IN: loaded serial 0
    zone localhost/IN: loaded serial 0
    zone loaded serial 0
    zone loaded serial 0
    zone 0.in-addr.arpa/IN: loaded serial 0
    [root@server1 named]#

here is my fwd.example.tv file:


    $ORIGIN example.tv.
    $TTL 86400
    @       IN SOA server1.example.tv. root.example.tv. (
    3600; refresh
    604800; expire
    86400;min TTL
    @IN     NS      server1.example.tv.
    @IN     NS      server2.example.tv.
    server1         IN      A
    server2         IN      A


here is my rev.example.tv file:

    @ORIGIN 1.168.192.in-addr.arpa.
    $TTL 86400
    @       IN      SOA     server1.example.tv.     root.example.tv.(
    2018021011; serial
    3600; refresh
    604800; expire
    86400; minimum TTL
    @IN NS server1.example.tv.
    @IN NS server2.example.tv.
    server1 A
    server2 A
    17 IN PTR server1.example.tv.
    20 IN PTR server2.example.tv.


here is my /etc/named.conf file:


  options {
           listen-on port 53 {;; };
            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;; };
            allow-transfer {localhost;; };
            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 "example.tv" IN{
            type master;
    file "fwd.example.tv";
    allow-update {none;};
    zone "1.168.192.in-addr.arpa" IN{
    type master;
    file "rev.example.tv";
    include "/etc/named.rfc1912.zones";
    include "/etc/named.root.key";

Link to comment
Share on other sites

Here's one of mine:


$ttl 38400
example.com.             IN      SOA     bsd.example.com. example.example.com. (
                                38400 )
example.com.             IN      NS      bsd.example.com.
example.com.             IN      NS      ns.someothersite.com.
bsd.example.com.         IN      A
www.example.com.         IN      A
mail.example.com.        IN      A
example.com.             IN      A
example.com.             IN      MX      5 bsd.example.com.
example.com.             IN      MX      10 mail.example.com.
example.com.             IN      MX      20 dallas.someothersite.com.
beal.example.com.        IN      A
ns2.example.com.         IN      A
example.com.             IN      TXT     "v=spf1 mx -all"
I've never seen nor used @IN before (and without a FQDN first) ... do you have a reference for that? (Your link seems to have disappeared if it was ever there).
Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.