Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DNS Client with Proxy Protocol v2

This is a Go-based DNS client that supports Proxy Protocol v2, allowing you to send DNS queries while preserving client source IP information.

Features

✅ Sends DNS queries using UDP
✅ Supports Proxy Protocol v2 to include source IP details
✅ Allows setting Type-Length-Value (TLV) fields in the Proxy Protocol header
✅ Supports DNS query types: A, AAAA, MX

Installation

Make sure you have Go installed (>=1.18).

  1. Clone the repository:

    git clone https://github.com/yourusername/dns-proxy-client.git
    cd dns-proxy-client
  2. Install dependencies:

    go mod tidy
  3. Build the binary:

    go build -o dns-client

Usage

Run the client with the following syntax:

./dns-client <dns_server> <port> <domain> <type(A,AAAA,MX)> [kv_key=kv_value]

Example to query an AAAA record with Proxy Protocol and a TLV field:

./dns-client 1.1.1.1 53 example.com AAAA 1=custom-data

Dependencies

About

Client DNS with ProxyProtocol support - For testing purpose only

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages