d2ip

command module
v0.0.0-...-9c8ab56 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

README

d2ip

d2ip 是一个零配置的 DNS 服务器。可将任意包含 IP 的域名映射到该 IP。

  • IPv4: 1.2.3.4.your.domain -> A 1.2.3.4
  • IPv6: 2000--1.your.domain -> AAAA 2000::1

参数

d2ip -l :53 -d your.domain,your.another.domain -m 127.0.0.1:8080
  • -l 监听地址。默认 :53
  • -d (必需) 提供服务的域名。多个域名用 , 分隔。
  • -m prometheus metrics http 地址。

使用

  1. 在服务器上启动 d2ip 。
  2. 将域名的 NS 记录指向服务器。

docker

docker run -d --name d2ip --restart unless-stopped -p 53:53/udp -p 53:53/tcp ghcr.io/urlesistiana/d2ip:main d2ip -d your.domain

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL