globetrotter 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +11 -15
- data/bin/globetrotter +1 -1
- data/lib/globetrotter.rb +1 -1
- data/lib/globetrotter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a77ed8d5c5ea59b1ec541a7444b090874e33ef8d
|
4
|
+
data.tar.gz: 4b8791eaabed67a6e414567c2f1089346e43391e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbffd8ef57ecabbc09dc9c37a0948fcce9a3a4ecab3240a5198a7f45cf9658ae5c7652a50f1b44e18753e61e5d19abbec077e2c5c8274d886ea5b65a1ce349c9
|
7
|
+
data.tar.gz: c864bcec76287458b0d3181b6c68203274cf70e5d2447bb60e62e25fa2a1c02cfac01f2b1f312a1d82fe84ae904e2851081200a8b958087c70af5f5a8fcda636
|
data/README.md
CHANGED
@@ -1,28 +1,24 @@
|
|
1
|
-
#
|
1
|
+
# globetrotter
|
2
2
|
|
3
|
-
|
3
|
+
globetrotter retrieves a list of DNS servers around the world from the [Public DNS Server List](http://public-dns.tk/) and runs your query against them. This is particularly handy for compiling list of SaaS endpoint IPs in cases where the provider doesn't specify them.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
gem 'globetrotter'
|
10
|
-
|
11
|
-
And then execute:
|
12
|
-
|
13
|
-
$ bundle
|
14
|
-
|
15
|
-
Or install it yourself as:
|
16
|
-
|
17
|
-
$ gem install globetrotter
|
7
|
+
`gem install globetrotter`
|
18
8
|
|
19
9
|
## Usage
|
10
|
+
Query 100 DNS servers for googleapis.com, making 10 requests in parallel at a time:
|
11
|
+
`globetrotter -q googleapis.com -c 100 -p 10`
|
12
|
+
|
13
|
+
See `globetrotter -h` for all parameters
|
20
14
|
|
21
|
-
TODO
|
15
|
+
## TODO
|
16
|
+
* Improve command line argument parsing
|
17
|
+
* Handle non-A records
|
22
18
|
|
23
19
|
## Contributing
|
24
20
|
|
25
|
-
1. Fork it
|
21
|
+
1. [Fork it](https://github.com/amplify-education/globetrotter/fork)
|
26
22
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
23
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
24
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/bin/globetrotter
CHANGED
data/lib/globetrotter.rb
CHANGED
@@ -13,7 +13,7 @@ class Globetrotter
|
|
13
13
|
@ns_count_to_check = options.fetch(:ns_count_to_check, 100)
|
14
14
|
@timeout_seconds = options.fetch(:timeout_seconds, 2)
|
15
15
|
@query = options.fetch(:query, 'googleapis.com')
|
16
|
-
@concurrency = options.fetch(:concurrency,
|
16
|
+
@concurrency = options.fetch(:concurrency, 10)
|
17
17
|
@ns_ips = fetch_ns_ips
|
18
18
|
end
|
19
19
|
|
data/lib/globetrotter/version.rb
CHANGED