forked from ameshkov/dnslookup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
38 lines (30 loc) · 881 Bytes
/
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
name: dnslookup
version: '1.4.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 176.103.130.130`
DNS-over-TLS:
`./dnslookup example.org tls://dns.adguard.com`
DNS-over-HTTPS:
`./dnslookup example.org https://dns.adguard.com/dns-query`
Machine-readable format:
`JSON=1 ./dnslookup example.org 176.103.130.130`
confinement: strict
base: core18
parts:
dnslookup:
plugin: make
source: .
build-snaps: [ go ]
build-packages: [ git, build-essential ]
override-build: |
VERSION="1.3.0-${SNAP_REVISION}" make
cp dnslookup ${SNAPCRAFT_PART_INSTALL}/
apps:
dnslookup:
command: dnslookup
plugs:
- network