Extract DNS adapter layer to an external gem.