Skip to content

Commit

Permalink
parses addresses in all the sections
Browse files Browse the repository at this point in the history
  • Loading branch information
Zekai.Zheng authored and kiddkai committed Jul 28, 2016
1 parent 5f7f51f commit 27a59c1
Show file tree
Hide file tree
Showing 5 changed files with 526 additions and 173 deletions.
33 changes: 33 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ Table of Contents
* [TYPE_SRV](#type_srv)
* [TYPE_SPF](#type_spf)
* [CLASS_IN](#class_in)
* [SECTION_AN](#section_an)
* [SECTION_NS](#section_ns)
* [SECTION_AR](#section_ar)
* [Automatic Error Logging](#automatic-error-logging)
* [Limitations](#limitations)
* [TODO](#todo)
Expand Down Expand Up @@ -152,6 +155,9 @@ which usually takes some of the following fields:
* `address`

The IPv4 or IPv6 address in their textual representations when the resource record type is either `1` (`TYPE_A`) or `28` (`TYPE_AAAA`), respectively. Secussesive 16-bit zero groups in IPv6 addresses will not be compressed by default, if you want that, you need to call the `compress_ipv6_addr` static method instead.
* `section`

The section in the dns response. Tells you which section is the answer comes from. Possible values are `1` (`SECTION_AN`) or `2` (`SECTION_NS`) or `3` (`SECTION_AR`).
* `cname`

The (decoded) record data value for `CNAME` resource records. Only present for `CNAME` records.
Expand Down Expand Up @@ -186,6 +192,15 @@ This method also takes an optional `options` argument table, which takes the fol

The type of the question. Possible values are `1` (`TYPE_A`), `5` (`TYPE_CNAME`), `28` (`TYPE_AAAA`), or any other QTYPE value specified by RFC 1035 and RFC 3596. Default to `1` (`TYPE_A`).

* `authority_section`

The `answers` includes authority section of the dns response or not. Possible values are `true`, `false`. Default to `false`.

* `additional_section`

The `answers` includes additional section of the dns response or not. Possible values are `true`, `false`. Default to `false`.


When data truncation happens, the resolver will automatically retry using the TCP transport mode
to query the current nameserver. All TCP connections are short lived.

Expand Down Expand Up @@ -379,6 +394,24 @@ The `Internet` resource record type, equal to the decimal number `1`.

[Back to TOC](#table-of-contents)

SECTION_AN
----------
`syntax: stype = r.SECTION_AN`

The `Answer` section in the DNS response, equal to the decimal number `1`

SECTION_NS
----------
`syntax: stype = r.SECTION_NS`

The `Authority` section in the DNS response, equal to the decimal number `2`

SECTION_AR
----------
`syntax: stype = r.SECTION_AR`

The `Additional` section in the DNS response, equal to the decimal number `3`

Automatic Error Logging
=======================

Expand Down
Loading

0 comments on commit 27a59c1

Please sign in to comment.