forked from zerotier/zeronsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
78 lines (68 loc) · 2.59 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[package]
name = "zeronsd"
version = "0.5.2"
authors = ["Erik Hollensbe <[email protected]>", "Adam Ierymenko <[email protected]>"]
description = "Unicast DNS resolver for ZeroTier networks"
homepage = "https://github.com/zerotier/zeronsd"
repository = "https://github.com/zerotier/zeronsd"
documentation = "https://github.com/zerotier/zeronsd/blob/main/README.md"
license = "BSD-3-Clause"
readme = "README.md"
keywords = ["dns", "zerotier"]
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
regex = ">=0"
anyhow = ">=0"
clap = { version = "^3", features = ["derive"] }
ipnetwork = ">=0"
trust-dns-resolver = { version = "^0.21.0", features = ["tokio-runtime", "dns-over-openssl"] }
trust-dns-server = { version = "^0.21.0", features = ["trust-dns-resolver", "dns-over-openssl"] }
tokio = { version = "1", features = ["full"] }
serde = ">=0"
serde_json = ">=0"
serde_yaml = ">=0"
zerotier-central-api = "=1.2.1"
zerotier-one-api = "=1.2.1"
toml = ">=0"
tinytemplate = ">=0"
rand = ">=0"
tracing = "0.1"
tracing-log = "0.1"
tracing-subscriber = "0.2"
hex = ">=0"
openssl = ">=0"
async-trait = ">=0"
lazy_static = ">=0"
reqwest = ">=0"
[features]
vendored-openssl = [ "openssl/vendored" ]
[dev-dependencies]
ctor = ">=0"
[package.metadata.deb.variants.ubuntu22]
features = [ "vendored-openssl" ]
[package.metadata.deb]
copyright = "ZeroTier, Inc"
extended-description = """
ZeroNS provides names that are a part of ZeroTier Central's
(https://my.zerotier.com) configured networks; once provided a network it:
- Listens on the local interface joined to that network -- you will want to
start one ZeroNS per ZeroTier network.
- Provides general DNS by forwarding all queries to `/etc/resolv.conf`
resolvers that do not match the TLD, similar to `dnsmasq`.
- Tells Central to point all clients that have the "Manage DNS" settings turned
**on** to resolve to it.
- Finally, sets a provided TLD (`.home.arpa` is the default), as well as
configuring `A` (IPv4) and `AAAA` (IPv6) records for:
- Member IDs: `zt-<memberid>.<tld>` will resolve to the IPv4/v6 addresses for
them.
- Names: _if_ the names are compatible with DNS names, they will be converted
as such: to `<name>.<tld>`.
- Please note that **collisions are possible** and that it's _up to the
admin to prevent them_.
"""
[package.metadata.generate-rpm]
assets = [ { source = "target/release/zeronsd", dest = "/usr/bin/zeronsd", mode = "755" } ]
features = [ "vendored-openssl" ]
[target.'cfg(windows)'.dependencies]
openssl = { version = ">=0", features = [ "vendored" ] }