I have found strange file inside bind directory. I have there two files: pri.example.eu and pri.example.eu.err. They are differ from each other in lines: 1) ns7.domain.net. 86400 A X.Y.V.Z (first file) ns7.domain.net. 3600 A X.Y.V.Z (second file) 2) poczta.example.eu. 3600 CNAME ghs.google.com. (first file) poczta.example.eu. 86400 CNAME ghs.google.com. (second file) 3) www.poczta 3600 CNAME ghs.google.com. (first file) www.poczta 86400 CNAME ghs.google.com. (second file) 4) (of course I have two dns records in each file) example.eu. 3600 NS sdns2.ovh.net. (first file) example.eu. 3600 NS cdns.ovh.net. (second file) 5) example.eu. 3600 TXT "v=spf1 include:_spf.google.com ~all" (first file) example.eu. 43200 TXT "v=spf1 include:_spf.google.com ~all" (second file) What is wrong and where? Maybe should I put whole dns configuration or something?
A .err file means that BIND rejected that file so that the last working configuration is used instead. You can use the program named-checkzone to view the error.
Mhm, understood. I will check and give response. Thanks Till for tip. EDIT Perfect tool. I had dot in CNAME record at the end of poczta.example.eu: Code: poczta.example.eu. 3600 CNAME ghs.google.com. After removed file with .err disappeared. Btw is any rule about dots at the end of names? For example I have CNAME as above which gives error with dot, but MX line Code: example.eu. 3600 MX 10 aspmx.l.google.com. does not give any error and has dot at the end.
Yes. If your DNS record is either a domain name of a fully qualified domain name (FQDN: Hostname + Domain name) you put a dot at the end of it wich tells the name server NOT to add the zone name to the record. If your DNS record is only a hostname that is part of the zone you leave the trailing dot away telling the name server to actually add the zone name to the record.
Thanks for answer. "Zone" means for example domain name from named.conf.local -> zone "example.eu" {}? If I understood right, for poczta.example.eu I can't put dot at the end, because with it record would look like poczta.example.eu.example.eu?
Almost.. you HAVE to put either poczta.example.eu. with the dot OR poczta without the dot. Both are acceptable but it's common to use only the hostname without the dot when it's a hostname (and the hostname being only poczta) in your own zone (or domain).
Thanks for answer. Line below gives error with dot: Code: poczta.example.eu. 3600 CNAME ghs.google.com.