Skip to content

Instantly share code, notes, and snippets.

@ximon18
Created March 4, 2019 12:24
Show Gist options
  • Save ximon18/15aae65af9a705510bf828431e7c072a to your computer and use it in GitHub Desktop.
Save ximon18/15aae65af9a705510bf828431e7c072a to your computer and use it in GitHub Desktop.
msg = DNSMessage(qdn, qstate.qinfo.qtype, qstate.qinfo.qclass, PKT_QR | PKT_AA)
msg.answer.append("{} 300 IN A {}".format(qdn, ipv4))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment