LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-20-2014, 05:08 AM   #1
MrMurdok
LQ Newbie
 
Registered: Jul 2014
Posts: 3

Rep: Reputation: Disabled
Question Bind DNS isn't working. Needing help with named.conf and zone file.


My first question is that I only have one NS (NS1) for my domain that is self hosted. For the second I'm trying to use ns2.afraid.org with a duplicate of my zones on there. I'm not sure if this works but the only information I was able to find was a comment mentioning you could use a service similar to afraid.org for this. Is this acceptable?

Secondly are my named.conf file and zone files configured correctly? I duplicated everything on afraid.org except for 1 subdomain for testing and everything works except for that one subdomain.

Named.conf

Code:
options
{

    directory       "/var/named";	// "Working" directory
    dump-file       "data/cache_dump.db";
        statistics-file     "data/named_stats.txt";
        memstatistics-file  "data/named_mem_stats.txt";


    listen-on port 53   { any; };
    listen-on port 53   { 127.0.0.1; };

    //listen-on-v6 port 53  { any; };
    listen-on-v6 port 53    { ::1; };

    allow-query     { any; };
    allow-query-cache   { localhost; };


    recursion no;

    dnssec-enable yes;

    dnssec-validation yes;

    dnssec-lookaside auto;
};

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

view "external"
{

    zone "murdok.org" IN {
            type master;
            file "/var/named/murdok.org";
    };


};
include "/etc/rndc.key";

controls {
	inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; };
};
Zone File

Code:
$TTL 1D
$ORIGIN murdok.org.
@              IN      SOA   ns1.murdok.org. ryan.murdok.org. (
               2011120100 ; serial number
               2h         ; refresh =  2 hours
               15M        ; update retry = 15 minutes
               3W12h	  ; expiry = 3 weeks + 12 hours
               2h20M	  ; minimum = 2 hours + 20 minutes
               )
; main domain name servers
              IN      NS     ns1.murdok.org.
; mail domain mail servers
              IN      MX      10 mail
; A records for name servers above
ns1           IN      A      192.168.0.3
; A record for mail server above
murdok.org         IN     A	 192.168.0.3
mail          IN      A      192.168.0.6
www          IN      A      192.168.0.3
linux          IN      A      192.168.0.3
files          IN      A      192.168.0.3
CentOS 6.5
Bind

Thanks!
 
Old 07-21-2014, 07:44 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Your named.conf and zone files seems correct. you can also use named-checkconf for verifying named.conf. For zone file syntax check , you can use named-checkzone

Thanks
 
Old 07-22-2014, 05:44 AM   #3
MrMurdok
LQ Newbie
 
Registered: Jul 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by vishesh View Post
Your named.conf and zone files seems correct. you can also use named-checkconf for verifying named.conf. For zone file syntax check , you can use named-checkzone

Thanks
Thank you
 
  


Reply

Tags
bind, centos, configuration, dns, named



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Bind named.conf file not found at /etc/ msi.dhaka Linux - Newbie 2 02-22-2013 06:20 AM
BIND DNS slave on internal network named.conf question: Lantzvillian Linux - Server 3 02-05-2008 09:45 PM
reg named.conf configuration file of BIND DNS bzlaskar Linux - Server 1 12-27-2007 01:40 PM
Bind have lost some zone in named.conf & lost db file achilles Linux - Enterprise 0 04-19-2007 06:22 AM
DNS: Named.conf don point to zone file Swakoo Linux - General 3 09-27-2005 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration