<commit_before># globetrotter

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.

## Installation

`gem install globetrotter`

## Usage
Query 100 DNS servers for googleapis.com, making 10 requests in parallel at a time:
`globetrotter -q googleapis.com -c 100 -p 10`

See `globetrotter -h` for all parameters<commit_msg>add file param example to readme<commit_after># globetrotter

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.

## Installation

    $ gem install globetrotter

## Usage
Query 100 DNS servers for googleapis.com, making 10 requests in parallel at a time:

    $ globetrotter -q googleapis.com -c 100 -p 10
    
Write results for google.com to /tmp/google.txt - file will be created if it doens't exist

    $ globetrotter -q google.com -f /tmp/google.txt

See `globetrotter -h` for all parameters
{'fraction_non_alphanumeric': 0.06454183266932272, 'fraction_numerical': 0.01593625498007968, 'mean_word_length': 4.08502024291498, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '998611', 'n_tokens_mistral': 387, 'n_tokens_neox': 350, 'n_words': 173}