Who is who here? Is it log from NS1? Is it slave? Here is insufficient info, needs more deeper look into logs and configs.
NS1 is the slave
slave named log file
transfer of 'emaple.it/IN' from 53.81.34.118#53: connected using 10.0.0.201#60764
transfer of 'emaple.it/IN' from 53.81.34.118#53:
failed while receiving responses: NXDOMAIN
transfer of 'emaple.it/IN' from 53.81.34.118#53: Transfer completed: 0 messages, 0 records, 0 bytes, 0.164 secs (0 bytes/sec)
zone example2.com/IN: Transfer started.
transfer of 'example2.com/IN' from 53.81.34.118#53: connected using 10.0.0.201#36385
transfer of 'example2.com/IN' from 53.81.34.118#53:
failed while receiving responses: NXDOMAIN
I have disabled firewall and getting the same problem.
The domains exist on the 53.81.34.118 and they resolve normally with nslookup as follows:
[root@NS1]# dig @53.81.34.118 greens247.com
; <<>> DiG 9.9.4-RedHat-9.9.4-38.el7_3.2 <<>> @53.81.34.118 example2.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5906
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;example2.com. IN A
;; ANSWER SECTION:
example2.com. 86400 IN A 53.81.34.118
;; AUTHORITY SECTION:
example2.com. 86400 IN NS ns2.example2.com.
example2.com. 86400 IN NS ns100.example2.com.
;; ADDITIONAL SECTION:
ns100.example2.com. 86400 IN A 53.81.34.119
ns2.example2.com. 86400 IN A 53.81.34.118
;; Query time: 4 msec
;; SERVER: 53.81.34.118#53(53.81.34.118)
;; WHEN: Fri Mar 10 18:22:34 UTC 2017
;; MSG SIZE rcvd: 128
On the master servers:
rndc -c /usr/local/psa/var/modules/slave-dns-manager/slave_10.0.0.201.conf addzone example2.com '{ type slave; file "example2.com"; masters { 53.81.34.118; }; };'
rndc: 'addzone' failed: already exists
no error in log files when transfer happens. firewall disabled on both slave and master
when I used rndc addzone command a file 3bf305731dd26307.nzf was created on the slave. the path for each domain zone file is in "domainname.com" but there is no files like that in the location, i guess because they were not transferred. I tried to change the location to "/var/named/example2.com" and mannually created the zone file for that domain. and restarted named service but still it wont resolve the domain locally nor allow me to query that domain from another computer.
I tired to allow recursion by removing recursion no; and tried the following command from windows computer
nslookup google.com the slaveserver.com
and it worked how ever when i try it with the domain i manually copied example2.com it gives me this error
*** UnKnown can't find greens247.com: Server failed
I think my problem maybe because the slave and master servers have internal ip addresses and external ip addresses and this may be the reason for the problem, i just dont know how to fix it.