Ubuntu10.04 bind9 configuration Master/Slave zone data transfer problem, ubuntu10.04bind9
When configuring dns master-slave zone data transfer on ubuntu10.04 today, the slave server cannot learn the configuration of the master server. When viewing/var/log/messages
Aug 1 06:42:45 ubuntu kernel: [5397.159601] type = 1503 audit (1406900565.661: 37 ): operation = "mknod" pid = 2351 parent = 1 profile = "/usr/sbin/named" requested_mask = "c:" denied_mask = "c :: "fsuid = 121 ouid = 121 name ="/etc/bind/slaves/tmp-Gyllksio7F"
Confused ....
Display when viewing/var/log/syslog
Aug 1 06:45:47 ubuntu named [2350]: reloading configuration succeeded
Aug 1 06:45:47 ubuntu named [2350]: any newly configured zones are now loaded
Aug 1 06:45:47 ubuntu named [2350]: zone langbing.com/IN: Transfer started.
Aug 1 06:45:47 ubuntu named [2350]: transfer of 'langbing. com/in' from 192.168.1.103 #53: connected using 192.168.1.104 #35568
Aug 1 06:45:47 ubuntu named [2350]: dumping master file:/etc/bind/slaves/tmp-CKgYPEoetS: open: permission denied
Aug 1 06:45:47 ubuntu named [2350]: transfer of 'langbing. com/in' from 192.168.1.103 #53: failed while loading responses: permission denied
Aug 1 06:45:47 ubuntu named [2350]: transfer of 'langbing. com/IN 'from 192.168.1.103 #53: Transfer completed: 0 messages, 7 records, 0 bytes, 0.009 secs (0 bytes/sec)
It turns out to be a permission issue.
But the directory has been given writable permissions, but is still told not to write permissions, online to find a blog (http://blog.sina.com.cn/s/blog_541a3cf10101c70b.html) the original write directory is protected by the AppArmor Service (I don't know what it is ...), You must add the write permission to the directory in the/etc/apparmor. d/usr. sbin. named directory.
/Etc/bind/slave/** rw, /Etc/bind/slave/rw,
Restart apparmor service/etc/init. d/apparmor restart
Run rndc reconfig to display Aug 1 06:49:28 ubuntu named [2559]: reloading configuration succeeded
Aug 1 06:49:28 ubuntu named [2559]: any newly configured zones are now loaded
Aug 1 06:49:28 ubuntu named [2559]: zone langbing.com/IN: Transfer started.
Aug 1 06:49:28 ubuntu named [2559]: transfer of 'langbing. com/in' from 192.168.1.103 #53: connected using 192.168.1.104 #45509
Aug 1 06:49:28 ubuntu named [2559]: zone langbing.com/IN: transferred serial 10
Aug 1 06:49:28 ubuntu named [2559]: transfer of 'langbing. com/IN 'from 192.168.1.103 #53: Transfer completed: 1 messages, 7 records, 203 bytes, 0.052 secs (3903 bytes/sec)
Aug 1 06:49:28 ubuntu named [2559]: zone langbing.com/IN: sending notifies (serial 10)
OK...
Urgent ubuntu installation and configuration of bind9 Process
The bbs.chinaunix.net/..138988 URL may be helpful. Read it and copy and paste the command step by step.
Bind9 is installed in Ubuntu as the dns server, but the dns service cannot be started. The specific configuration file is as follows:
?