I fixed it myself , it was a permission and ownership issue.To fix it you need to execute those ssh commands
Fix rndc connection refused error
chown root:named /etc/rndc.key
chmod 640 /etc/rndc.key
I fixed it myself , it was a permission and ownership issue.To fix it you need to execute those ssh commands
chown root:named /etc/rndc.key
chmod 640 /etc/rndc.key