LinuxQuestions.org
Review your favorite Linux distribution.
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 06-16-2018, 01:05 PM   #1
ChakaZulu
LQ Newbie
 
Registered: Jul 2013
Distribution: Fedora
Posts: 20

Rep: Reputation: Disabled
Red face 18: ignoring out-of-zone data named DNS server


I'm donning a DNS server but i'm struggled in this error
Quote:
centenarytech.zone:18: ignoring out-of-zone data (centenarytech.pt)
when i do
Quote:
systemctl status named
. I've made
Quote:
named-checkzone centenarytech.pt centenarytech.zone and have zone centenarytech.pt/IN: loaded serial 2012031401 OK
So my centenarytech.zone
config is in here.
Quote:
$TTL 14400
centenarytech.pt. 86400 IN SOA ns1.centenarytech.pt. host.centenarytech.pt. ( 2012031401 ;Serial Number
86400 ;refresh
7200 ;retry
3600000 ;expire
86400 ;minimum
)

centenarytech.pt. 86400 IN NS ns1.domain.com.
centenarytech.pt. 86400 IN NS ns2.domain.com.

centenarytech.pt. 14400 IN A 192.168.1.7

localhost 14400 IN A 127.0.0.1

centenarytech.pt. 14400 IN MX 0 centenarytech.pt.

mail 14400 IN CNAME centenarytech.pt.
www 14400 IN CNAME centenarytech.pt.
ftp 14400 IN CNAME centenarytech.pt.
Can someone figure out the problem?
Thanks in advance.
 
Old 06-16-2018, 02:44 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
What do you have for centenarytech.pt and centenarytech.zone in your named.conf?

From the rest of what you wrote it appears your "zone name" is centenarytech.pt and your "zone file" is centenarytech.zone. I suspect in named.conf you used centenarytech.zone as the "zone name" in which case "centenarytech.pt" is indeed "out of zone".

Or to put it another way: You can use any "zone file" you want but the "zone name" must be what is described within that "zone file".

So in named.conf for this zone and file you should have something like:

Code:
zone "centenarytech.pt" {
        type master;
        file "centenarytech.zone";
        allow-query { any; };
};
 
Old 06-16-2018, 04:10 PM   #3
ChakaZulu
LQ Newbie
 
Registered: Jul 2013
Distribution: Fedora
Posts: 20

Original Poster
Rep: Reputation: Disabled
My named.conf file

My friend thanks for yours reply but i want to send you the complete named.conf that i do believe is quiet equal tou your solution, in that case i still looking for a help in this case.

named.conf
Quote:
zone “centenarytech.pt” {

type master;
notify no;
allow-query { any; };
file "centenarytech.zone";

};
 
Old 06-17-2018, 02:44 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,168
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
Quote:
centenarytech.zone:18: ignoring out-of-zone data (centenarytech.pt)
Since it's complaining about line 18, I suggest you to replace CNAME(s) with A RRs and see if it helps.
(Besides it's better practice to use A instead of CNAME RRs for records that under your control)
Code:
$TTL 14400
centenarytech.pt. 86400 IN SOA ns1.centenarytech.pt. host.centenarytech.pt. ( 2012031401 ;Serial Number
86400 ;refresh
7200 ;retry
3600000 ;expire
86400 ;minimum
)

centenarytech.pt. 86400 IN NS ns1.domain.com.
centenarytech.pt. 86400 IN NS ns2.domain.com.

centenarytech.pt. 14400 IN A 192.168.1.7

localhost 14400 IN A 127.0.0.1

centenarytech.pt. 14400 IN MX 0 centenarytech.pt.

mail 14400 IN A 192.168.1.7
www 14400 IN A 192.168.1.7
ftp 14400 IN A 192.168.1.7
 
Old 06-18-2018, 12:32 PM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
ChakaZulu, In the named.conf file as you posted it I see two different kind of double quote symbols. The ones on the line with 'zone' don't match the ones on the line with 'file'. If they really are different then it doesn't match the ASCII code used for double quote and therefore isn't recognized as such even though at first glance they appear to be OK. This sometimes occurs if you've copied and pasted from a web page into a Linux file. (Of course its always possible it is just the way the paste here at LQ is showing them.)

Can you check your original file and replace all double quotes by typing that symbol within an editor such as vim then retry? (Don't forget to bounced named after editing named.conf.)

Last edited by MensaWater; 06-18-2018 at 12:34 PM.
 
Old 06-19-2018, 05:03 PM   #6
ChakaZulu
LQ Newbie
 
Registered: Jul 2013
Distribution: Fedora
Posts: 20

Original Poster
Rep: Reputation: Disabled
Ok thanks for the support but i have a book which approchs DNS zones and reverse zones, in time i Will dispose my solution if does't work keep count with urs support.
Thanks
 
Old 06-20-2018, 03:43 PM   #7
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by ChakaZulu View Post
Ok thanks for the support but i have a book which approchs DNS zones and reverse zones, in time i Will dispose my solution if does't work keep count with urs support.
Thanks
I don't see anything in this thread about reverse zones or PTR records so you comment seems to be a non-sequitur. While best practice is in fact to setup arpa reverse zones with PTR records, in general NOT having them isn't an issue except for things like mail as many people check for reverse records to verify the sending server is valid.

Your original post was about out of zone data for a forward zone and the posts here have been aimed at that. You should work on one thing at a time.

You can use CNAMEs and while there was nothing wrong with the suggestion not to use them that isn't your problem either.

However, my post about the dissimilar double quotes you've shown may in fact be your problem. You didn't respond to that at all.

A good way to prevent people from trying to help you is to ignore what they've posted when you do your follow up posts and or to bring up additional topics before you've resolved the first one.
 
  


Reply



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
[SOLVED] Errors - BIND9 - Reverse Zone - ignoring out-of-zone data jd5646 Linux - Networking 1 05-07-2018 10:21 AM
[SOLVED] Reverse Zone - ignoring out-of-zone data haraldboehmecke Linux - Networking 1 03-28-2017 04:02 AM
DNS server error -- 52.200.121.zone:45: ignoring out-of-zone data Anandhc Linux - Newbie 0 09-11-2014 02:45 PM
[SOLVED] ignoring out-of-zone data in my DNS file zyzzogeton Linux - Networking 6 12-18-2009 12:29 PM
"Ignoring out-of-zone data" errors with my DNS Zone file zyzzogeton Linux - Networking 2 12-17-2009 08:51 AM

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

All times are GMT -5. The time now is 12:55 AM.

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