How many A records can fit in a single DNS response?

后端 未结 2 1504
温柔的废话
温柔的废话 2021-01-27 04:45

What are the size limits on DNS responses? For instance how many \'A\' resource records can be present in a single DNS response? The DNS response should still be cache-able.

2条回答
  •  时光取名叫无心
    2021-01-27 04:51

    According to this RFC, the limit is based on the UDP message size limit, which is 512 octets. The EDNS standard supports a negotiated response with a virtually unlimited response size, but at the time of that writing (March 2011), only 65% of clients supported it (which means you can't really rely on it)

提交回复
热议问题