fix dns configs (faster and no memory leak; read A record from db instead read object);