Created
April 24, 2011 00:24
-
-
Save koichik/939144 to your computer and use it in GitHub Desktop.
Fix doc - missing resolveNs() and resolveCname()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From a613dcfbb4459e82734e549c3b64e10a58fc85f9 Mon Sep 17 00:00:00 2001 | |
| From: koichik <koichik@improvement.jp> | |
| Date: Sun, 24 Apr 2011 09:18:08 +0900 | |
| Subject: [PATCH 2/2] Fix doc - missing resolveNs() and resolveCname() | |
| --- | |
| doc/api/dns.markdown | 15 ++++++++++++++- | |
| 1 files changed, 14 insertions(+), 1 deletions(-) | |
| diff --git a/doc/api/dns.markdown b/doc/api/dns.markdown | |
| index 56021f3..9212cc0 100644 | |
| --- a/doc/api/dns.markdown | |
| +++ b/doc/api/dns.markdown | |
| @@ -41,7 +41,8 @@ necessarily the value initially passed to `lookup`). | |
| Resolves a domain (e.g. `'google.com'`) into an array of the record types | |
| specified by rrtype. Valid rrtypes are `A` (IPV4 addresses), `AAAA` (IPV6 | |
| addresses), `MX` (mail exchange records), `TXT` (text records), `SRV` (SRV | |
| -records), and `PTR` (used for reverse IP lookups). | |
| +records), `PTR` (used for reverse IP lookups), `NS` (name server records) | |
| +and `CNAME` (canonical name records). | |
| The callback has arguments `(err, addresses)`. The type of each item | |
| in `addresses` is determined by the record type, and described in the | |
| @@ -89,6 +90,18 @@ Reverse resolves an ip address to an array of domain names. | |
| The callback has arguments `(err, domains)`. | |
| +### dns.resolveNs(domain, callback) | |
| + | |
| +The same as `dns.resolve()`, but only for name server records (`NS` records). | |
| +`addresses` is an array of the name server records available for `domain` | |
| +(e.g., `['ns1.example.com', 'ns2.example.com']`). | |
| + | |
| +### dns.resolveCname(domain, callback) | |
| + | |
| +The same as `dns.resolve()`, but only for canonical name records (`CNAME` | |
| +records). `addresses` is an array of the canonical name records available for | |
| +`domain` (e.g., `['bar.example.com']`). | |
| + | |
| If there an an error, `err` will be non-null and an instanceof the Error | |
| object. | |
| -- | |
| 1.7.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment