Function c_ares_sys::ares_dns_record_create

source ·
pub unsafe extern "C" fn ares_dns_record_create(
    dnsrec: *mut *mut ares_dns_record_t,
    id: c_ushort,
    flags: c_ushort,
    opcode: ares_dns_opcode_t,
    rcode: ares_dns_rcode_t,
) -> ares_status_t
Expand description

Create a new DNS record object

\param[out] dnsrec Pointer passed by reference for a newly allocated record object. Must be ares_dns_record_destroy()’d by caller. \param[in] id DNS Query ID. If structuring a new query to be sent with ares_send(), this value should be zero. \param[in] flags DNS Flags from \ares_dns_flags_t \param[in] opcode DNS OpCode (typically ARES_OPCODE_QUERY) \param[in] rcode DNS RCode \return ARES_SUCCESS on success