dnslookup

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct{}

API dnslookup

func (API) DNSLookup

func (API) DNSLookup(c *gin.Context)

DNSLookup godoc @Summary DNS Lookup @Description Lookup given domain's DNS record (A, CNAME, PTR, NS, MX, TXT, and etc. @Tags Lookup @Accept json,mpfd,x-www-form-urlencoded @Produce json,xml @Param "" body Request true "Request JSON" @Success 200 {object} data.APIResponse @Failure 400 {object} data.APIResponse @Failure 503 {object} data.APIResponse @Router /api/dns-lookup/lookup [post]

type Request

type Request struct {
	DomainName string `json:"domainName" xml:"domainName" form:"domainName" binding:"required"`
}

Request dns lookup request

type Response

type Response struct {
	DomainName string
	IPAddress  []string
	CNAME      []string
	NS         []string
	MX         []string
	PTR        map[string][]string
	TXT        []string
}

Response dns lookup response

Jump to

Keyboard shortcuts

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