Coder Social home page Coder Social logo

adnslookup's Introduction

ADnsLookup is a DNS lookup tool written in Go language that allows to extract ip addresses.

Concurrent with worker, pool of workers and a load balance mechanism.

Install

go get github.com/lord3ver/adnslookup/cmd/adnslookup

Go >= 1.17

Installing executables with go get is deprecated. go install may be used instead:

go install github.com/lord3ver/adnslookup/cmd/adnslookup@latest

Usage

adnslookup -h

Shows help for using the tool.

     ___    ____             __                __
    /   |  / __ \____  _____/ /   ____  ____  / /____  ______
   / /| | / / / / __ \/ ___/ /   / __ \/ __ \/ //_/ / / / __ \
  / ___ |/ /_/ / / / (__  ) /___/ /_/ / /_/ / ,< / /_/ / /_/ /
 /_/  |_/_____/_/ /_/____/_____/\____/\____/_/|_|\__,_/ .___/
                                                     /_/

A DNS Lookup tool. Concurrent with worker, pool of workers and generator "load balance" mechanism.

Version:        1.0.0
Author:         LordEver (@Lord3ver)

Usage of ADnsLookup:
  -d string
        Target domain
  -f string
        Targets file. One per line.
  -out
        Print results to stdout (default true)
  -outfile string
        Specify an output file when completed. Create or append if exists.
  -outfileNoDNS string
        Specify an output file for domains with no DNS record. Create or append if exists.
  -t int
        Max threads (default 25)

Example

adnslookup -d microsoft.com

     ___    ____             __                __
    /   |  / __ \____  _____/ /   ____  ____  / /____  ______
   / /| | / / / / __ \/ ___/ /   / __ \/ __ \/ //_/ / / / __ \
  / ___ |/ /_/ / / / (__  ) /___/ /_/ / /_/ / ,< / /_/ / /_/ /
 /_/  |_/_____/_/ /_/____/_____/\____/\____/_/|_|\__,_/ .___/
                                                     /_/

A DNS Lookup tool. Concurrent with worker, pool of workers and generator "load balance" mechanism.

Version:        1.0.0
Author:         LordEver (@Lord3ver)

40.76.4.15      microsoft.com
104.215.148.63  microsoft.com
13.77.161.179   microsoft.com
40.113.200.201  microsoft.com
40.112.72.205   microsoft.com

Done!

ADnsLookup Go library

ADnsLookup can be used as a library. Here is an example:

package main

import (
	"fmt"
	"github.com/lord3ver/adnslookup/pkg/dnsip"
)

func main() {
	targets := []string{"www.google.com", "www.microsoft.com"}

	res, resNone := dnsip.Lookup(1, targets, false)

	fmt.Print("Found:\n")
	for _, found := range res {
		fmt.Println(found)
	}

	fmt.Print("\nNot Found:\n")
	for _, notFound := range resNone {
		fmt.Println(notFound)
	}
}

adnslookup's People

Contributors

lord3ver avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.