Skip to content

Is it possible to enable EDNS and set the query ID at the same time? #1170

Closed Answered by ns-sjorgedeaguiar
ns-sjorgedeaguiar asked this question in Q&A
Discussion options

You must be logged in to vote

Oh found out I can do this:

    query = dns.message.make_query("dns.google", dns.rdatatype.A)
    query.id = query_id
    query.use_edns(
        edns=True,
        ednsflags=0,
        payload=4096,
        options=[edns_option]
    )
    response = dns.query.udp(query, dns_server, port=dns_port)

This fits my needs

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ns-sjorgedeaguiar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant