I had same issue and found the cause, the nginx config file was missing the primary domain config section as I had messed up my custom DNS settings. I pasted the primary domain config section from the nginx config templates directory on github while putting my primary domain in place and was able to use the admin panel to remove the offending DNS entries. familiarity with nginx config files is required to apply this fix.