-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
libredns.go
30 lines (28 loc) · 801 Bytes
/
libredns.go
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
package provider
import "net/netip"
func LibreDNS() Provider {
return Provider{
Name: "LibreDNS",
// see https://libreops.cc/radicaldns.html
// see https://libredns.gr/
DoT: DoTServer{
IPv4: []netip.AddrPort{
defaultDoTIPv4AddrPort([4]byte{116, 202, 176, 26}),
},
IPv6: []netip.AddrPort{
defaultDoTIPv6AddrPort([16]byte{0x2a, 0x1, 0x4, 0xf8, 0x1c, 0xc, 0x82, 0x74, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1}),
},
Name: "dot.libredns.gr",
},
// see https://libredns.gr/
DoH: DoHServer{
URL: "https://doh.libredns.gr/dns-query",
IPv4: []netip.Addr{
netip.AddrFrom4([4]byte{116, 202, 176, 26}),
},
IPv6: []netip.Addr{
netip.AddrFrom16([16]byte{0x2a, 0x1, 0x4, 0xf8, 0x1c, 0xc, 0x82, 0x74, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1}),
},
},
}
}