default: true
description: "A list of ``name``=``key`` pairs, for meta-data to be added to Protocol Buffer message"
- name: "SetEDNSOption"
- description: "Add arbitrary EDNS option and data to the response. Any existing EDNS content with the same option code will be overwritten. Subsequent rules are processed after this action"
+ description: "Add arbitrary EDNS option and data to the response. Any existing EDNS content with the same option code will be replaced. Subsequent rules are processed after this action"
parameters:
- name: "code"
type: "u32"
.. versionadded:: 1.9.11
- Add arbitrary EDNS option and data to the response. Any existing EDNS content with the same option code will be overwritten.
+ Add arbitrary EDNS option and data to the response. Any existing EDNS content with the same option code will be replaced.
Subsequent rules are processed after this action.
:param int option: The EDNS option number
def testAdvancedSetEDNSOptionResponseOverwrite(self):
"""
- Responses: Set EDNS Option in response overwrites existing option
+ Responses: Set EDNS Option in response replaces existing option
"""
name = 'setednsoptionresponse-overwrite.responses.tests.powerdns.com.'
initialECO = cookiesoption.CookiesOption(b'aaaaaaaa', b'bbbbbbbb')
'127.0.0.1')
response.answer.append(rrset)
- overWrittenECO = cookiesoption.CookiesOption(b'deadbeef', b'deadc0de')
+ replacementECO = cookiesoption.CookiesOption(b'deadbeef', b'deadc0de')
expectedResponse = dns.message.make_response(query)
- expectedResponse.use_edns(edns=True, payload=512, options=[overWrittenECO])
+ expectedResponse.use_edns(edns=True, payload=512, options=[replacementECO])
expectedResponse.answer.append(rrset)
for method in ("sendUDPQuery", "sendTCPQuery"):