Skip to content

a tiny dns-resolver using go and it's net package

Notifications You must be signed in to change notification settings

Rahul1804/dns-resolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DNS Resolver in Go

This project implements a simple DNS resolver in Go using the net package. The resolver takes a hostname as input and returns the IP addresses associated with that hostname.

Features

  • Resolves A records for a given hostname.
  • Command-line interface for easy usage.
  • Basic error handling and logging.

Prerequisites

  • Go 1.18 or higher installed on your machine.

Installation

  1. Clone the repository:

    git clone https://github.com/rahul1804/dns-resolver.git
    cd dns-resolver
  2. Initialize the Go module:

    go mod init dns-resolver

Usage

Building the Application

To build the DNS resolver application, run the following command:

go build -o dns-resolver
./dns-resolver google.com

About

a tiny dns-resolver using go and it's net package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published