take nameserver and key from db