Hi Beqa,
Is this an error while you try restart a HANA system? or specific hdbnameserver service?
Ideally you should not be required to restart of a single service on HANA
Which version of HANA are you using and as Cindy suggested are you connected using sidadm user while doing the restart?
Sunil