dns: improve record adding with ajax requests