Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnscommon.r2py cannot parse replies containing MX type of queries and it doesn't support 'AAAA' records #168

Open
pranavnyu opened this issue May 7, 2015 · 1 comment
Assignees

Comments

@pranavnyu
Copy link

User traceback:
  "dylink.r2py", line 546, in <module>
  "dylink.r2py", line 407, in dylink_dispatch
  "dylink.r2py", line 520, in evaluate
  "librepy.r2py", line 153, in <module>
  "dylink.r2py", line 446, in _dylink_dispatch
  "dylink.r2py", line 407, in dylink_dispatch
  "dylink.r2py", line 520, in evaluate
  "ut_dnsquery_recordsmx.r2py", line 11, in <module>
  "ut_dnsquery_recordsmx.r2py", line 8, in test_recordsMX
  "dnsquery.r2py", line 243, in recordsMX
  "dnsquery.r2py", line 140, in dns_connection
  "dnscommon.r2py", line 406, in convert_packet_to_dictionary
  "dnscommon.r2py", line 459, in _read_answer_section
  "dnscommon.r2py", line 500, in _read_single_answer
  "dnscommon.r2py", line 703, in _parse_address

Exception (with type 'exceptions.IndexError'): string index out of range

---
@pranavnyu pranavnyu self-assigned this May 7, 2015
@pranavnyu pranavnyu changed the title dnscommon.r2py doesn't reply for MX type of queries and it doesn't support 'AAAA' records dnscommon.r2py cannot parse replies containing MX type of queries and it doesn't support 'AAAA' records May 8, 2015
@pranavnyu
Copy link
Author

We also need an enhancement for 'TXT' types of queries.
eg.

dig @8.8.8.8 google.com txt

; <<>> DiG 9.8.3-P1 <<>> @8.8.8.8 google.com txt
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51625
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;google.com.            IN  TXT

;; ANSWER SECTION:
google.com.     3599    IN  TXT "v=spf1 include:_spf.google.com ip4:216.73.93.70/31 ip4:216.73.93.72/31 ~all"

So we need to get the text answer from the answer section. We can do something like 'AAAA' records and add this feature too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant