Skip to content

Files

Latest commit

a30d7f0 · Jun 23, 2021

History

History

dnsserver

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 11, 2021
Jun 23, 2021
Jun 23, 2021
Jun 22, 2021
Jun 22, 2021
Jun 11, 2021
Jun 22, 2021

dnsserver

Support local development with proper DNS resolution for IP address

Features

  • Resolve IP domain into IP

    # HOSTS
    1-2-3-4.devns.net 1.2.3.4
    2400-cb00-2049-1--a29f-1804.devns.net 2400:cb00:2049:1::a29f:1804 
    localhost.devns.net 127.0.0.1
    localhost.devns.net ::1 
    
  • Metrics

Usage

CLI

Usage of ./dnsserver:
  -api-endpoint value
        Specify multiple value for calling multiple API to get result
  -domain string
        [MUST CHANGE] Base domain for DNS resolution (default "example.com")
  -h    Print this help
  -nameserver string
        [MUST CHANGE] Primary NS for SOA must end with period(.) (default "ns.example.com.")
  -port int
        Port for DNS server to listen to (default 53)
  -soa-email string
        Email for SOA must end with period(.) (default "john\\n.doe.example.com.")