GithubHelp home page GithubHelp logo

edson-martins / dnsrecords Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 232 KB

The dnsrecords is a web application that displays the IP addresses and mail hosts associated with a user-entered domain name.

Go 83.47% HTML 16.53%
golang go google mux go-logging heroku

dnsrecords's Introduction

Go Go Report Card Quality Gate Status

DNS MX Record Web Application

A web application that displays the IP addresses and mail hosts associated with a user-entered domain name.

Requirements

· The application must listen on port 8080

· When accessing the root app (http://localhost:8080/), display a form asking for a domain name (e.g. domain.com)

· When that value is submitted, display the IP addresses associated with the domain and the hosts associated with that domain's DNS MX records.

· If the results page is accessed with the HTTP Accept header set to "application/json", render a JSON response instead of HTML

o Note, in this case, the Accept header will only be "application/json". 

Installation

$ go get github.com/edson-martins/dns-mx-record
$ cd dns-mx-record
$ go mod init

Prerequisites

This application is using the libraries below as dependency:

1 - Golang logging library - github.com/op/go-logging

$ go get github.com/op/go-logging

2 - gorilla/mux - github.com/gorilla/mux

$ go get -u github.com/gorilla/mux

Getting Started

1 - There is a contants.go file used to store the URL Port (default is 8080) and the Index template path. If you want to change the host port, that's the place.

2 - The program can be executed in the project root path (path where the main.go file is available) using the command below:

go run main.go

3 - The build process looking to generate the executable can be done as:

go build
go install

The main file executable will be installed on $GOPATH/bin and the dependecies at $GOPATH/pkg

dnsrecords's People

Contributors

edson-martins avatar

Stargazers

 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.