Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation of the server for more record types #44

Open
bortzmeyer opened this issue May 4, 2022 · 1 comment
Open

Documentation of the server for more record types #44

bortzmeyer opened this issue May 4, 2022 · 1 comment

Comments

@bortzmeyer
Copy link

If record types like NS are quite straightforward, there is apparently no documentation for a server wishing to reply to types like SOA which are not so obvious (and the error messages from the Erlang DNS library are unhelpful). Add an example like:

    result =
      case query.type do
        :a -> {127, 0, 0, 1}
	:aaaa -> {8193, 3512, 2989, 56495, 0, 0, 65535, 1}
        :cname -> 'your.domain.example'
        :txt -> ['General value', 'Other value']
	:ns -> 'ns1.op.example'
	:soa -> {'me.example', 'root.me.example', 1, 1800, 1800, 1800, 86400}
        _ -> nil
      end
@bortzmeyer
Copy link
Author

Also:

:hinfo -> {'My CPU', 'My OS'}
:mx -> {10, 'mail.example.net'}  # Untested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant