Fix bugs related to dns registration and root auth key import