Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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; };
};
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";
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
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.