DNS snippets for Python.