Check DNS length limits. Fixes #26.