named.service failed to start due to zone file error.

Solution Unverified - Updated -

Issue

  • Starting named.service failed 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content