Pulling my hair out on this. Here are the contents of my zentyal.log when trying to save some network objects and getting the error, "The following modules failed while saving their changes, their state is unknown: dns"
2017/05/22 10:18:25 INFO> GlobalImpl.pm:625 EBox::GlobalImpl::saveAllModules - Saving config and restarting services: network dns firew
all dhcp
2017/05/22 10:18:25 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: network
2017/05/22 10:18:28 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: dns
2017/05/22 10:18:31 INFO> DNS.pm:91 EBox::DNS::appArmorProfiles - Setting DNS apparmor profile
2017/05/22 10:18:34 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command nsupdate -g -t 10 /var/lib/zentyal/tmp/Mit5dhpoCG failed.
Error output: update failed: REFUSED
Command output: .
Exit value: 2 at root command nsupdate -g -t 10 /var/lib/zentyal/tmp/Mit5dhpoCG failed.
Error output: update failed: REFUSED
Command output: .
Exit value: 2 at /usr/share/perl5/EBox/Sudo.pm line 240
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/t1vPYvpDTh.cmd 2> /var/lib/zentyal/tmp/stderr', 'nsupdate -g -t 10
/var/lib/zentyal/tmp/Mit5dhpoCG', 512, 'ARRAY(0x7bac828)', 'ARRAY(0x47dbb40)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, 'nsupdate -g -t 10 /var/lib/zentyal/tmp/Mit5dhpoCG') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('nsupdate -g -t 10 /var/lib/zentyal/tmp/Mit5dhpoCG') called at /usr/share/perl5/EBox/DNS.pm line 923
EBox::DNS::_postServiceHook('EBox::DNS=HASH(0x78e3450)', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 941
EBox::Module::Service::_regenConfig('EBox::DNS=HASH(0x78e3450)') called at /usr/share/perl5/EBox/Module/Base.pm line 234
eval {...} at /usr/share/perl5/EBox/Module/Base.pm line 233
EBox::Module::Base::save('EBox::DNS=HASH(0x78e3450)') called at /usr/share/perl5/EBox/GlobalImpl.pm line 657
eval {...} at /usr/share/perl5/EBox/GlobalImpl.pm line 656
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x6af1170)', 'progress', 'EBox::ProgressIndicator=HASH(0x6aa8b18)') called at /
usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x6a8dc98)', 'progress', 'EBox::ProgressIndicator=HASH(0x6aa8b18)') called at /usr/share/zent
yal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30
2017/05/22 10:18:34 ERROR> GlobalImpl.pm:661 EBox::GlobalImpl::saveAllModules - Failed to save changes in module dns: root command nsup
date -g -t 10 /var/lib/zentyal/tmp/Mit5dhpoCG failed.
Error output: update failed: REFUSED
Command output: .
Exit value: 2
2017/05/22 10:18:34 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: dhcp
2017/05/22 10:18:35 ERROR> GlobalImpl.pm:736 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes
, their state is unknown: dns at The following modules failed while saving their changes, their state is unknown: dns at /usr/share/p
erl5/EBox/GlobalImpl.pm line 736
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x6af1170)', 'progress', 'EBox::ProgressIndicator=HASH(0x6aa8b18)') called at /
usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x6a8dc98)', 'progress', 'EBox::ProgressIndicator=HASH(0x6aa8b18)') called at /usr/share/zent
yal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30
scottz@zentyal:/var/log/zentyal$ nsupdate -g -t 10 /var/lib/zentyal/tmp/Mit5dhpoCG
could not open '/var/lib/zentyal/tmp/Mit5dhpoCG': permission denied
scottz@zentyal:/var/log/zentyal$ sudo nsupdate -g -t 10 /var/lib/zentyal/tmp/Mit5dhpoCG
update failed: REFUSED