Closed martinlevesque closed 5 years ago
Hi, so sorry it's been a long time. The Erlang DNS module (hence this library) only provide the building block for running DNS client/server, specifically packet encoding and TCP server. You have the full freedom to construct the DNS packet yourself. To be able to work with it you'll need to take a look at the records definition in the module (https://github.com/blackberry/Erlang-OTP/blob/master/lib/kernel/src/inet_dns.hrl#L176), or consult the DNS specification. In your case, you'll need to change the %DNS.Resource
type
field to "aaaa" or "mx".
For AAAA, see an example in #44
Hey,
I am wondering how to respond with other query types than the ones provided in the server example:
For instance, I am looking to how to respond with :aaaa and :mx. Any idea/pointer? Couldn't find the erlang documentation.
Thanks