Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2021-09-27, 17:57:23

Author Topic: Secondary/Slave DNS Configuration - permission bug for Bind  (Read 6848 times)

0 Members and 1 Guest are viewing this topic.

Offline atljohnsen

  • Valuable Member
  • *
  • Posts: 72
  • Karma: +3/-0
    • View Profile
I tried to configure Secondary/Slave DNS with server setup as described earlier in this forum with Server A and Server B. I am using Bind and configured Server B with Secondary/Slave DNS. The slave zone was created, but no record file from Server A domain was transferred. The /opt/configs/nsd/conf/slave folder was empty. I then checked the log files in /var/log/named and noticed in the xfer-in.log:
22-Jul-2019 xx:xx:xx.xxx transfer of 'Server A domain/IN' from 123.123.12.123#53: Transfer status: success
So a transfer of file from Server A was indeed taking place.
I then checked general.log file and found:
22-Jul-2019 xx:xx:xx.xxx zone Server A domain/IN: Transfer started.
22-Jul-2019 xx:xx:xx.xxx zone Server A domain/IN: transferred serial 2019072221
22-Jul-2019 xx:xx:xx.xxx dumping master file: slave/tmp-0aB4ER7niE: open: permission denied
The /opt/configs/nsd/conf/slave folder that named server will save the file in was 755 root/root, so i guessed that this was reason for permission denied for named. I then changed the permission of this folder to 777 just to test, and shortly after I could see the the record file from Server A domain in the slave folder.
It worked. I will now make the slave folder writable for named.
So, @Mustafa, if my observations are valid you should fix the the permissions for next release.

Best regards

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Secondary/Slave DNS Configuration - permission bug for Bind
« Reply #1 on: 2019-07-23, 20:25:31 »
Thanks.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.055 seconds with 18 queries.

web stats analysis