named.service failed to start due to zone file error.
Issue
-
Starting
named.servicefailed with below error.Jun 05 17:04:07 rhel7u9-2 bash[19923]: dns_master_load: sample2.com.zone:2: unexpected end of line Jun 05 17:04:07 rhel7u9-2 bash[19923]: dns_master_load: sample2.com.zone:2: unexpected end of input Jun 05 17:04:07 rhel7u9-2 bash[19923]: sample2.com.zone:9: record with inherited owner (badstring.sample2.com) immediately after $ORIGIN (sample2.com) Jun 05 17:04:07 rhel7u9-2 bash[19923]: zone sample2.com/IN: loading from master file sample2.com.zone failed: unexpected end of input Jun 05 17:04:07 rhel7u9-2 bash[19923]: zone sample2.com/IN: not loaded due to errors. Jun 05 17:04:07 rhel7u9-2 bash[19923]: _default/sample2.com/IN: unexpected end of input
Environment
- Red Hat Enterprise Linux 7
- bind
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.