Named configuration error in centos 6.9

Issues related to configuring your network
shan2naruto
Posts: 19
Joined: 2017/11/24 12:10:18

Re: Named configuration error in centos 6.9

Post by shan2naruto » 2018/02/01 12:43:14

yes how can i rectify this @trevorH

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Named configuration error in centos 6.9

Post by TrevorH » 2018/02/01 15:56:30

Without me consulting the documentation that describes the format of zone files, I suspect it may be as simple as deleting the whitespace prior to the @, the server1 and server2 lines. If that doesn't work then you'll need to go search out the doc for zone files and discover the correct format.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

MartinR
Posts: 714
Joined: 2015/05/11 07:53:27
Location: UK

Re: Named configuration error in centos 6.9

Post by MartinR » 2018/02/01 17:34:52

I can confirm that Trevor. A space or tab at the beginning of the line means "use the existing name", so the three lines are interpreted as:

Code: Select all

@        @        IN NS server1.example.tv.
@        server1 IN  A  10.0.2.17
@        server2 IN  A  10.0.2.16
Expanding line 2 fully:

Code: Select all

example.tv.         server1  IN            A 10.0.2.17

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Named configuration error in centos 6.9

Post by TrevorH » 2018/02/01 17:46:10

Thanks. I don't hand edit zone files very much as most of my updates are done via nsupdate.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply