https://github.com/ameshkov/dnsblockingtest
Tests how many domains the browser connects to
https://github.com/ameshkov/dnsblockingtest
Last synced: about 1 year ago
JSON representation
Tests how many domains the browser connects to
- Host: GitHub
- URL: https://github.com/ameshkov/dnsblockingtest
- Owner: ameshkov
- Created: 2023-02-15T09:48:32.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-15T10:43:03.000Z (over 3 years ago)
- Last Synced: 2025-03-24T17:55:14.615Z (about 1 year ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DNS Blocking Test
Tests the performance of DNS blocking.
## Requirements
1. Install `node` and `yarn`.
2. Run `yarn install` to install dependencies.
## How to use
```
Usage: yarn start [options]
Options:
-u, --url URL to open. Can be specified multiple times.[array] [required]
-t, --timeout Time to wait after the page was loaded AND also used as a
navigation timeout. [number]
-v, --verbose Run with verbose logging. [boolean]
--version Show version number [boolean]
-h, --help Show help [boolean]
Examples:
yarn start -u https://example.org/ scrape example.org and count the number of
unique URLs and domains the browser tries to
connect to.
```
### Examples
Scrape one domain, timeout is 5 seconds:
`yarn start -u https://www.google.com/ -t 5000`
Scrape multiple domains:
`yarn start -u https://cnn.com/ -u https://nbcnews.com/ -t 5000`
Run with verbose logging to see what exact requests failed:
`yarn start -u https://cnn.com/ -t 5000 -v`