• Dmitry Frank's avatar
    Remove old docs, rename docs_new to docs · 23122b32
    Dmitry Frank authored
    It would be probably good idea to also remove tools/docgen.py and
    asciidoc.mk, but asciidoc.mk is still mentioned under `cloud/doc`, which
    may contain some useful info which we'll need at least to review before
    removing.
    
    PUBLISHED_FROM=faf454d4c52a2f07ea8ac084cf0bd11a0c9c9b3b
    23122b32
mg_dns_reply_record.md 565 Bytes
title: "mg_dns_reply_record()"
decl_name: "mg_dns_reply_record"
symbol_kind: "func"
signature: |
  int mg_dns_reply_record(struct mg_dns_reply *reply,
                          struct mg_dns_resource_record *question,
                          const char *name, int rtype, int ttl, const void *rdata,
                          size_t rdata_len);

Append a DNS reply record to the IO buffer and to the DNS message.

The message num_answers field will be incremented. It's caller's duty to ensure num_answers is propertly initialized.

Returns -1 on error.