nslookupot 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -7
- data/lib/nslookupot/resolver.rb +5 -1
- data/lib/nslookupot/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a70603270c739e775d3873bcdf853f18dbfb15202627dcde9c21c93d85846241
|
4
|
+
data.tar.gz: 82829d828069a267ce4d312ba18e1b65a1adb5f348dbec57bafbb4c40a2f436b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 215dfe05b79bf4f5966dc3a505ec4028d4fd5776a7662e7baf145449aeb3409fe666753e95a9afafa8e6f3e1d536f8368e4915241e00081806d8604e5938ebe8
|
7
|
+
data.tar.gz: 9d9cb4a0c11de2290e03758f4033b24c643284b4dc69c841a87113d2fdf1993e49aa7283f1ee827ee3b53f413512380f30b0f4253a865e647421ece81768d3b1
|
data/README.md
CHANGED
@@ -4,21 +4,21 @@
|
|
4
4
|
[![CI](https://github.com/thekuwayama/nslookupot/workflows/CI/badge.svg)](https://github.com/thekuwayama/nslookupot/actions?workflow=CI)
|
5
5
|
[![Maintainability](https://api.codeclimate.com/v1/badges/5df9157757f5a0bf1623/maintainability)](https://codeclimate.com/github/thekuwayama/nslookupot/maintainability)
|
6
6
|
|
7
|
-
nslookupot is CLI that is `nslookup` over TLS (version 1.2).
|
7
|
+
nslookupot is CLI that is `nslookup` over TLS (version 1.3 or 1.2).
|
8
8
|
|
9
9
|
|
10
10
|
## Installation
|
11
11
|
|
12
12
|
The gem is available at [rubygems.org](https://rubygems.org/gems/nslookupot). You can install with:
|
13
13
|
|
14
|
-
```
|
14
|
+
```sh-session
|
15
15
|
$ gem install nslookupot
|
16
16
|
```
|
17
17
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
```
|
21
|
+
```sh-session
|
22
22
|
$ nslookupot --help
|
23
23
|
Usage: nslookupot [options] name
|
24
24
|
-s, --server VALUE the name server IP address (default 1.1.1.1)
|
@@ -30,7 +30,7 @@ Usage: nslookupot [options] name
|
|
30
30
|
|
31
31
|
You can run it the following:
|
32
32
|
|
33
|
-
```
|
33
|
+
```sh-session
|
34
34
|
$ nslookupot example.com
|
35
35
|
Address: 1.1.1.1#853
|
36
36
|
--
|
@@ -42,7 +42,7 @@ Ttl: 2860
|
|
42
42
|
|
43
43
|
If you need to resolve other than A type, you can run it the following:
|
44
44
|
|
45
|
-
```
|
45
|
+
```sh-session
|
46
46
|
$ nslookupot --type=cname www.youtube.com
|
47
47
|
Address: 1.1.1.1#853
|
48
48
|
--
|
@@ -54,7 +54,7 @@ Ttl: 1358
|
|
54
54
|
|
55
55
|
If you need to query to `8.8.8.8`, you can run it the following:
|
56
56
|
|
57
|
-
```
|
57
|
+
```sh-session
|
58
58
|
$ nslookupot --server=8.8.8.8 --port=853 --hostname=dns.google www.google.com
|
59
59
|
Address: 8.8.8.8#853
|
60
60
|
--
|
@@ -66,7 +66,7 @@ Ttl: 223
|
|
66
66
|
|
67
67
|
If you need to query to `9.9.9.9`, you can run it the following:
|
68
68
|
|
69
|
-
```
|
69
|
+
```sh-session
|
70
70
|
$ nslookupot --server=9.9.9.9 --port=853 --hostname=quad9.net www.quad9.net
|
71
71
|
Address: 9.9.9.9#853
|
72
72
|
--
|
data/lib/nslookupot/resolver.rb
CHANGED
@@ -75,7 +75,11 @@ module Nslookupot
|
|
75
75
|
# @return [OpenSSL::SSL::SSLSocket]
|
76
76
|
def gen_sock
|
77
77
|
ts = TCPSocket.new(@server, @port)
|
78
|
-
ctx = OpenSSL::SSL::SSLContext.new
|
78
|
+
ctx = OpenSSL::SSL::SSLContext.new
|
79
|
+
ctx.min_version = OpenSSL::SSL::TLS1_2_VERSION
|
80
|
+
ctx.max_version = OpenSSL::SSL::TLS1_2_VERSION
|
81
|
+
ctx.max_version = OpenSSL::SSL::TLS1_3_VERSION \
|
82
|
+
if defined? OpenSSL::SSL::TLS1_3_VERSION
|
79
83
|
ctx.alpn_protocols = ['dot']
|
80
84
|
sock = OpenSSL::SSL::SSLSocket.new(ts, ctx)
|
81
85
|
sock.sync_close = true
|
data/lib/nslookupot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nslookupot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thekuwayama
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
|
-
rubygems_version: 3.2.
|
112
|
+
rubygems_version: 3.2.22
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: nslookup over TLS
|