dnstools: implement additional functions: add and delete, with tests.