-
Notifications
You must be signed in to change notification settings - Fork 73
/
snapcraft.yaml
45 lines (35 loc) · 1.09 KB
/
snapcraft.yaml
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
name: dnslookup
version: '1.11.1'
summary: Simple command-line tool to make DNS lookups using any protocol.
description: |
Simple command-line tool to make DNS lookups to the specified server using any protocol: DNS, DOH, DOT, DNSCrypt.
Examples:
Plain DNS:
`./dnslookup example.org 94.140.14.14`
DNS-over-TLS:
`./dnslookup example.org tls://dns.adguard.com`
DNS-over-HTTPS:
`./dnslookup example.org https://dns.adguard.com/dns-query`
DNS-over-QUIC:
`./dnslookup example.org quic://dns.adguard.com`
Machine-readable format:
`JSON=1 ./dnslookup example.org 94.140.14.14`
Specify the type of resource record (default A):
`RRTYPE=AAAA ./dnslookup example.org tls://127.0.0.1`
`RRTYPE=HTTPS ./dnslookup example.org tls://127.0.0.1`
confinement: strict
base: core20
parts:
dnslookup:
plugin: make
source: .
build-snaps: [ go ]
build-packages: [ git, build-essential ]
override-build: |
VERSION="1.11.1-${SNAP_REVISION}" make
cp dnslookup ${SNAPCRAFT_PART_INSTALL}/
apps:
dnslookup:
command: dnslookup
plugs:
- network