Documentation ¶
Overview ¶
The dns package provides retrieves specific DNS records for a domain.
var lib = require('dns'); var mxs = lib.mx("abcum.com"); var txt = lib.txt("abcum.com"); console.log(mxs, txt);
Index ¶
- func New(orb *orbit.Orbit) interface{}
- type Client
- func (this *Client) A(host string) (v []string)
- func (this *Client) Aaaa(host string) (v []string)
- func (this *Client) Cname(host string) (v []string)
- func (this *Client) Mx(host string) (v []map[string]interface{})
- func (this *Client) Naptr(host string) (v []map[string]interface{})
- func (this *Client) Ns(host string) (v []string)
- func (this *Client) Ptr(host string) (v []string)
- func (this *Client) Rr(addr string) (v []string)
- func (this *Client) Soa(host string) (v map[string]interface{})
- func (this *Client) Spf(host string) (v [][]string)
- func (this *Client) Srv(host string) (v []map[string]interface{})
- func (this *Client) Txt(host string) (v [][]string)
- type Module
- func (this *Module) A(host string) (v []string)
- func (this *Module) Aaaa(host string) (v []string)
- func (this *Module) Cname(host string) (v []string)
- func (this *Module) Mx(host string) (v []map[string]interface{})
- func (this *Module) Naptr(host string) (v []map[string]interface{})
- func (this *Module) New(timeout *time.Duration) *Client
- func (this *Module) Ns(host string) (v []string)
- func (this *Module) Ptr(host string) (v []string)
- func (this *Module) Rr(addr string) (v []string)
- func (this *Module) Soa(host string) (v map[string]interface{})
- func (this *Module) Spf(host string) (v [][]string)
- func (this *Module) Srv(host string) (v []map[string]interface{})
- func (this *Module) Txt(host string) (v [][]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.