Documentation
¶
Index ¶
- func DataSourceLookupIP() *schema.Resource
- func DataSourceLookupMX() *schema.Resource
- func DataSourceLookupNS() *schema.Resource
- func DataSourceLookupPTR() *schema.Resource
- func DataSourceLookupSRV() *schema.Resource
- func DataSourceLookupTXT() *schema.Resource
- type Lookup
- func (l *Lookup) Address(ctx context.Context, host string) (addrs []string, err error)
- func (l *Lookup) MailExchange(ctx context.Context, host string) (hosts []MailExchange, err error)
- func (l *Lookup) Nameserver(ctx context.Context, host string) (hosts []string, err error)
- func (l *Lookup) Reverse(ctx context.Context, addr string) (names []string, err error)
- func (l *Lookup) Service(ctx context.Context, service, proto, name string) (targets []ServiceTarget, err error)
- func (l *Lookup) Text(ctx context.Context, host string) (texts []string, err error)
- type MailExchange
- type ServiceTarget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSourceLookupIP ¶
func DataSourceLookupMX ¶
func DataSourceLookupNS ¶
func DataSourceLookupPTR ¶
func DataSourceLookupSRV ¶
func DataSourceLookupTXT ¶
Types ¶
type Lookup ¶
type Lookup struct {
// contains filtered or unexported fields
}
Lookup is currently thin wrapper around Go's net lookup functions with possibility to use custom resolver
func NewLookupFromResourceData ¶
func NewLookupFromResourceData(ctx context.Context, d *schema.ResourceData) *Lookup
func (*Lookup) MailExchange ¶
MailExchange returns the DNS MX records for the given host name sorted by priority.
func (*Lookup) Nameserver ¶
Nameserver returns the DNS NS records for the given domain name.
func (*Lookup) Reverse ¶
Reverse performs a reverse lookup for the given address, returning a list of names mapping to that address.
type MailExchange ¶
Click to show internal directories.
Click to hide internal directories.