Bind 9 Master zone

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
dragon_sa
Posts: 33
Joined: 2010/12/20 13:14:09

Re: Bind 9 Master zone

Post by dragon_sa » 2011/04/02 04:29:53

[quote]
pschaff wrote:
Looked more like a quad or quint monitor issue to me. :roll: Wrapped the lines by changing tags, but did not attempt to "un-garble".

To [b]dragon_sa[/b] - please do not just paste long output into the Code or Quote widgets - they are broken and will strip out all line terminations. :-(
Just paste into the edit window instead, and fix the tags as required for correct formatting.[/quote]

Thank your for your help fixing the formatting of this post :-)

I now have a named.root and named.hold in /var/named/chroot/var/named but I am still getting the same file not found errors, should they be located somewhere else?

paulweb
Posts: 2
Joined: 2011/04/01 21:12:36
Location: UK
Contact:

Re: Bind 9 Master zone

Post by paulweb » 2011/04/02 11:51:08

try specifying the exact path to the file in the config, that's what i had to do.
[code]zone "." {
type hint;
file "/var/named/chroot/var/named/named.root";
};
[/code]

dragon_sa
Posts: 33
Joined: 2010/12/20 13:14:09

Re: Bind 9 Master zone

Post by dragon_sa » 2011/04/02 23:51:58

Thanks for that I finally got bind to find the files by going /var/named/file as appears to start from the chrooted directory, now i have the following errors


* zone ./IN: has 0 SOA records
* internal/./IN: bad zone
* dns_rdata_fromtext: /var/named/named.hold:1: unexpected end of input
* zone ./IN: loading master file /var/named/named.hold: unexpected end of input
* external/./IN: unexpected end of input



and this is whats in my named.hold file


* A (server_ip_address) ; GLOBALOK

thekat
Posts: 14
Joined: 2010/02/18 12:38:17
Location: Oklahoma City, OK

Re: Bind 9 Master zone

Post by thekat » 2011/04/04 16:49:35

It sounds like you have both the bind and bind-chroot pacakges installed..

dragon_sa
Posts: 33
Joined: 2010/12/20 13:14:09

Re: Bind 9 Master zone

Post by dragon_sa » 2011/04/05 09:32:44

You seem to be correct I have the following packages installed

bind 9.3.6-4.P1.el5_5.3
bind-chroot 9.3.6-4.P1.el5_5.3
ypbind 1.19-12.el5

do I just uninstall the bind package or do I need to do something else?

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

Re: Bind 9 Master zone

Post by TrevorH » 2011/04/05 10:52:02

I think that in order to have bind-chroot installed you must already have bind installed anyway!

dragon_sa
Posts: 33
Joined: 2010/12/20 13:14:09

Re: Bind 9 Master zone

Post by dragon_sa » 2011/04/05 11:26:46

lol I went ahead and uninstalled bind, and getting start errors, and was slowling trying to rediect them all to the chroot version, so do I now go back and install bind again to get it working properly, and then look at the unclosed zone errors again?

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

Re: Bind 9 Master zone

Post by TrevorH » 2011/04/05 17:59:09

I tried it on a box without bind or bind-chroot and, yes, installing bind-chroot installs bind for you.

[code]
# yum install bind-chroot
...
Dependencies Resolved

==========================================================================================
Package Arch Version Repository Size
==========================================================================================
Installing:
bind-chroot x86_64 30:9.3.6-4.P1.el5_5.3 updates 44 k
Installing for dependencies:
bind x86_64 30:9.3.6-4.P1.el5_5.3 updates 986 k
[/code]

dragon_sa
Posts: 33
Joined: 2010/12/20 13:14:09

Re: Bind 9 Master zone

Post by dragon_sa » 2011/04/06 12:50:40

Re installed bind, configured the file paths and am back to the same error messages listed before.

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

Re: Bind 9 Master zone

Post by TrevorH » 2011/04/06 13:14:05

That's because your named.hold file is not syntactically valid. As far as I know, you must have an SOA section at the start. The one record that you quoted doesn't look right either.

Post Reply