dns

package
v0.0.0-...-c5bcced Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(orb *orbit.Orbit) interface{}

Types

type Client

type Client struct {
	Val *dns.Client `structs:"-"`
	// contains filtered or unexported fields
}

func NewClient

func NewClient(orb *orbit.Orbit, val *dns.Client) *Client

func (*Client) A

func (this *Client) A(host string) (v []string)

func (*Client) Aaaa

func (this *Client) Aaaa(host string) (v []string)

func (*Client) Cname

func (this *Client) Cname(host string) (v []string)

func (*Client) Mx

func (this *Client) Mx(host string) (v []map[string]interface{})

func (*Client) Naptr

func (this *Client) Naptr(host string) (v []map[string]interface{})

func (*Client) Ns

func (this *Client) Ns(host string) (v []string)

func (*Client) Ptr

func (this *Client) Ptr(host string) (v []string)

func (*Client) Rr

func (this *Client) Rr(addr string) (v []string)

func (*Client) Soa

func (this *Client) Soa(host string) (v map[string]interface{})

func (*Client) Spf

func (this *Client) Spf(host string) (v [][]string)

func (*Client) Srv

func (this *Client) Srv(host string) (v []map[string]interface{})

func (*Client) Txt

func (this *Client) Txt(host string) (v [][]string)

type Module

type Module struct {
	// contains filtered or unexported fields
}

func (*Module) A

func (this *Module) A(host string) (v []string)

func (*Module) Aaaa

func (this *Module) Aaaa(host string) (v []string)

func (*Module) Cname

func (this *Module) Cname(host string) (v []string)

func (*Module) Mx

func (this *Module) Mx(host string) (v []map[string]interface{})

func (*Module) Naptr

func (this *Module) Naptr(host string) (v []map[string]interface{})

func (*Module) New

func (this *Module) New(timeout *time.Duration) *Client

func (*Module) Ns

func (this *Module) Ns(host string) (v []string)

func (*Module) Ptr

func (this *Module) Ptr(host string) (v []string)

func (*Module) Rr

func (this *Module) Rr(addr string) (v []string)

func (*Module) Soa

func (this *Module) Soa(host string) (v map[string]interface{})

func (*Module) Spf

func (this *Module) Spf(host string) (v [][]string)

func (*Module) Srv

func (this *Module) Srv(host string) (v []map[string]interface{})

func (*Module) Txt

func (this *Module) Txt(host string) (v [][]string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL