LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-07-2001, 06:30 AM   #1
kik
LQ Newbie
 
Registered: Nov 2001
Location: Shoumen, Bulgaria
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
Question named errors


Few days ago I installed Bind 9.1.2 on Slackware with kernel 2.4.10. Our organization has two name servers, both are version 9. They are in master-slave relation. On master server named is running with as daemon UID, but the other is runing like root. Configuration files of zones in /etc/named are with -rw-r--r-- permissions. Every time when both servers comunicate each other these syslog messages is logged:

Nov 7 12:25:12 main /usr/sbin/named[23334]: transfer of 'here-is-a-slave-zone-file-name ' from here-is-a master-IP #53: receiving responses: permission denied
Nov 7 12:25:12 main /usr/sbin/named[23334]: dumping master file: tmp-XXXXgCqNaT: open: permission denied


Do anybody have any ideas? Thank you in advance
 
Old 11-10-2001, 04:34 PM   #2
gosub
LQ Newbie
 
Registered: Nov 2001
Location: Trondheim, Norway
Distribution: trustix secure linux, debian, redhat
Posts: 3

Rep: Reputation: 0
What I read out of this error message is that your master DNS server isn't configured to let the slave fetch the zone file.

In bind 8 you have to add this to your named.conf in order for specific slave servers to fetch zones:

allow-transfer {
10.10.10.10;
};

...where 10.10.10.10 is the IP of your slave server.
 
Old 11-12-2001, 01:59 AM   #3
kik
LQ Newbie
 
Registered: Nov 2001
Location: Shoumen, Bulgaria
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs up

I fix the problem. It was because the owner of /etc/named directory was root without write permission for others, but the named daemon is starting with "daemon" ownership (named -u daemon) . Also all zone files in this directory are owned by user "daemon" now and name servers are functioning correctly.
There is a allow-transfer directive with IP of slave server in named.conf file.
Thank you!
 
Old 12-28-2001, 04:55 PM   #4
davef
LQ Newbie
 
Registered: Dec 2001
Location: Toronto
Distribution: RedHat 7.2
Posts: 3

Rep: Reputation: 0
Bind 9.1.* dumping master file

I have had, or more correctly, am having the same problem. How did you change the user that Bind runs under? Did you change the user that Bind runs under or the permissions on the directory where the backup files where to be written?
 
Old 01-23-2002, 09:51 AM   #5
kik
LQ Newbie
 
Registered: Nov 2001
Location: Shoumen, Bulgaria
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: 0
The option -u, followed by user name, runs named process under user UID : named -u daemon ("daemon" is the user). All .rev and zone files in /etc/named directory and directory as whole can be with this permissions:
owner group file/dir permissions
daemon daemon -rw-r--r-- for files in /etc/named
daemon daemon drwxr-xr-x for /etc/named directory
In may case it's working. Which backup files you mean?
 
Old 01-23-2002, 11:04 AM   #6
davef
LQ Newbie
 
Registered: Dec 2001
Location: Toronto
Distribution: RedHat 7.2
Posts: 3

Rep: Reputation: 0
named -u

Quote:
Originally posted by kik
The option -u, followed by user name, runs named process under user UID : named -u daemon ("daemon" is the user). All .rev and zone files in /etc/named directory and directory as whole can be with this permissions:
owner group file/dir permissions
daemon daemon -rw-r--r-- for files in /etc/named
daemon daemon drwxr-xr-x for /etc/named directory
In may case it's working. Which backup files you mean?
Hey kik,

I got this all straightened out but thanks for the reply. I was setting up bind to run in a chroot jail and was a bit confused about a few things at the time. Most of this was because I was setting this up using the new views option and the server was actually a secondary server so it was a bit complicated. This was why I refered to the files as being backup files. Got it all up and running now though ;-)

Cheers

dave
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Red Hat: named daemon errors dsschanze Red Hat 2 01-29-2005 10:45 AM
named -u named at startup zzero Linux - Newbie 4 03-16-2004 12:08 AM
cannot find named.conf and /var/named kaushikma Red Hat 1 02-07-2004 12:49 PM
Virtual Host type, named or IP via SSL? Named VH is not possible? piratebiter Linux - Security 3 08-20-2003 05:27 PM
can't see named jpbarto Linux - Networking 2 07-09-2003 01:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration