{"action":"created","comment":{"url":"https://api.github.com/repos/MickaelBergem/dnsstresss/pulls/comments/45558634","id":45558634,"diff_hunk":"@@ -1,20 +1,26 @@\n package main\n \n import (\n+\t\"crypto/rand\"\n \t\"flag\"\n \t\"fmt\"\n \t\"github.com/miekg/dns\"\n+\t\"math/big\"\n+\t\"net\"\n \t\"os\"\n \t\"strings\"\n-\t\"time\"\n )\n \n // Runtime options\n-var concurrency int\n-var displayInterval int\n-var verbose bool\n-var targetDomain string\n-var resolver string\n+var (\n+\tconcurrency     int\n+\tdisplayInterval int\n+\tverbose         bool\n+\titerative       bool\n+\tresolver        string\n+\trandomIds       bool\n+\tflood           bool\n+)","path":"dnsstresss.go","position":29,"original_position":29,"commit_id":"41fb722e8e8e3dd00e2108baac9d5394a04332df","original_commit_id":"41fb722e8e8e3dd00e2108baac9d5394a04332df","user":{"login":"MickaelBergem","id":3510190,"avatar_url":"https://avatars.githubusercontent.com/u/3510190?v=3","gravatar_id":"","url":"https://api.github.com/users/MickaelBergem","html_url":"https://github.com/MickaelBergem","followers_url":"https://api.github.com/users/MickaelBergem/followers","following_url":"https://api.github.com/users/MickaelBergem/following{/other_user}","gists_url":"https://api.github.com/users/MickaelBergem/gists{/gist_id}","starred_url":"https://api.github.com/users/MickaelBergem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MickaelBergem/subscriptions","organizations_url":"https://api.github.com/users/MickaelBergem/orgs","repos_url":"https://api.github.com/users/MickaelBergem/repos","events_url":"https://api.github.com/users/MickaelBergem/events{/privacy}","received_events_url":"https://api.github.com/users/MickaelBergem/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2015-11-22T13:08:57Z","updated_at":"2015-11-22T13:08:57Z","html_url":"https://github.com/MickaelBergem/dnsstresss/pull/4#discussion_r45558634","pull_request_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/MickaelBergem/dnsstresss/pulls/comments/45558634"},"html":{"href":"https://github.com/MickaelBergem/dnsstresss/pull/4#discussion_r45558634"},"pull_request":{"href":"https://api.github.com/repos/MickaelBergem/dnsstresss/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/MickaelBergem/dnsstresss/pulls/4","id":51455470,"html_url":"https://github.com/MickaelBergem/dnsstresss/pull/4","diff_url":"https://github.com/MickaelBergem/dnsstresss/pull/4.diff","patch_url":"https://github.com/MickaelBergem/dnsstresss/pull/4.patch","issue_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/issues/4","number":4,"state":"open","locked":false,"title":"Various Enhancements","user":{"login":"Natolumin","id":342106,"avatar_url":"https://avatars.githubusercontent.com/u/342106?v=3","gravatar_id":"","url":"https://api.github.com/users/Natolumin","html_url":"https://github.com/Natolumin","followers_url":"https://api.github.com/users/Natolumin/followers","following_url":"https://api.github.com/users/Natolumin/following{/other_user}","gists_url":"https://api.github.com/users/Natolumin/gists{/gist_id}","starred_url":"https://api.github.com/users/Natolumin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Natolumin/subscriptions","organizations_url":"https://api.github.com/users/Natolumin/orgs","repos_url":"https://api.github.com/users/Natolumin/repos","events_url":"https://api.github.com/users/Natolumin/events{/privacy}","received_events_url":"https://api.github.com/users/Natolumin/received_events","type":"User","site_admin":false},"body":"* Iterative mode (for testing authoritative nameservers)\r\n* An option to re-randomize requests IDs in the messages for each message sent (this reduces max req/s by ~20% on my machines though)\r\n* The flood option from #2 ","created_at":"2015-11-22T01:59:00Z","updated_at":"2015-11-22T13:08:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8989ccaa77885451044ce6a02fd14a210a7b79f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/pulls/4/commits","review_comments_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/pulls/4/comments","review_comment_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/issues/4/comments","statuses_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/statuses/41fb722e8e8e3dd00e2108baac9d5394a04332df","head":{"label":"Natolumin:master","ref":"master","sha":"41fb722e8e8e3dd00e2108baac9d5394a04332df","user":{"login":"Natolumin","id":342106,"avatar_url":"https://avatars.githubusercontent.com/u/342106?v=3","gravatar_id":"","url":"https://api.github.com/users/Natolumin","html_url":"https://github.com/Natolumin","followers_url":"https://api.github.com/users/Natolumin/followers","following_url":"https://api.github.com/users/Natolumin/following{/other_user}","gists_url":"https://api.github.com/users/Natolumin/gists{/gist_id}","starred_url":"https://api.github.com/users/Natolumin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Natolumin/subscriptions","organizations_url":"https://api.github.com/users/Natolumin/orgs","repos_url":"https://api.github.com/users/Natolumin/repos","events_url":"https://api.github.com/users/Natolumin/events{/privacy}","received_events_url":"https://api.github.com/users/Natolumin/received_events","type":"User","site_admin":false},"repo":{"id":46620024,"name":"dnsstresss","full_name":"Natolumin/dnsstresss","owner":{"login":"Natolumin","id":342106,"avatar_url":"https://avatars.githubusercontent.com/u/342106?v=3","gravatar_id":"","url":"https://api.github.com/users/Natolumin","html_url":"https://github.com/Natolumin","followers_url":"https://api.github.com/users/Natolumin/followers","following_url":"https://api.github.com/users/Natolumin/following{/other_user}","gists_url":"https://api.github.com/users/Natolumin/gists{/gist_id}","starred_url":"https://api.github.com/users/Natolumin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Natolumin/subscriptions","organizations_url":"https://api.github.com/users/Natolumin/orgs","repos_url":"https://api.github.com/users/Natolumin/repos","events_url":"https://api.github.com/users/Natolumin/events{/privacy}","received_events_url":"https://api.github.com/users/Natolumin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Natolumin/dnsstresss","description":"Simple Go program to stress test DNS servers","fork":true,"url":"https://api.github.com/repos/Natolumin/dnsstresss","forks_url":"https://api.github.com/repos/Natolumin/dnsstresss/forks","keys_url":"https://api.github.com/repos/Natolumin/dnsstresss/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Natolumin/dnsstresss/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Natolumin/dnsstresss/teams","hooks_url":"https://api.github.com/repos/Natolumin/dnsstresss/hooks","issue_events_url":"https://api.github.com/repos/Natolumin/dnsstresss/issues/events{/number}","events_url":"https://api.github.com/repos/Natolumin/dnsstresss/events","assignees_url":"https://api.github.com/repos/Natolumin/dnsstresss/assignees{/user}","branches_url":"https://api.github.com/repos/Natolumin/dnsstresss/branches{/branch}","tags_url":"https://api.github.com/repos/Natolumin/dnsstresss/tags","blobs_url":"https://api.github.com/repos/Natolumin/dnsstresss/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Natolumin/dnsstresss/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Natolumin/dnsstresss/git/refs{/sha}","trees_url":"https://api.github.com/repos/Natolumin/dnsstresss/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Natolumin/dnsstresss/statuses/{sha}","languages_url":"https://api.github.com/repos/Natolumin/dnsstresss/languages","stargazers_url":"https://api.github.com/repos/Natolumin/dnsstresss/stargazers","contributors_url":"https://api.github.com/repos/Natolumin/dnsstresss/contributors","subscribers_url":"https://api.github.com/repos/Natolumin/dnsstresss/subscribers","subscription_url":"https://api.github.com/repos/Natolumin/dnsstresss/subscription","commits_url":"https://api.github.com/repos/Natolumin/dnsstresss/commits{/sha}","git_commits_url":"https://api.github.com/repos/Natolumin/dnsstresss/git/commits{/sha}","comments_url":"https://api.github.com/repos/Natolumin/dnsstresss/comments{/number}","issue_comment_url":"https://api.github.com/repos/Natolumin/dnsstresss/issues/comments{/number}","contents_url":"https://api.github.com/repos/Natolumin/dnsstresss/contents/{+path}","compare_url":"https://api.github.com/repos/Natolumin/dnsstresss/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Natolumin/dnsstresss/merges","archive_url":"https://api.github.com/repos/Natolumin/dnsstresss/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Natolumin/dnsstresss/downloads","issues_url":"https://api.github.com/repos/Natolumin/dnsstresss/issues{/number}","pulls_url":"https://api.github.com/repos/Natolumin/dnsstresss/pulls{/number}","milestones_url":"https://api.github.com/repos/Natolumin/dnsstresss/milestones{/number}","notifications_url":"https://api.github.com/repos/Natolumin/dnsstresss/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Natolumin/dnsstresss/labels{/name}","releases_url":"https://api.github.com/repos/Natolumin/dnsstresss/releases{/id}","created_at":"2015-11-21T15:06:06Z","updated_at":"2015-11-21T15:06:07Z","pushed_at":"2015-11-22T01:57:19Z","git_url":"git://github.com/Natolumin/dnsstresss.git","ssh_url":"git@github.com:Natolumin/dnsstresss.git","clone_url":"https://github.com/Natolumin/dnsstresss.git","svn_url":"https://github.com/Natolumin/dnsstresss","homepage":null,"size":199,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"MickaelBergem:master","ref":"master","sha":"470c4bd87e1f4c5659b7aecbb6613e5c145b476f","user":{"login":"MickaelBergem","id":3510190,"avatar_url":"https://avatars.githubusercontent.com/u/3510190?v=3","gravatar_id":"","url":"https://api.github.com/users/MickaelBergem","html_url":"https://github.com/MickaelBergem","followers_url":"https://api.github.com/users/MickaelBergem/followers","following_url":"https://api.github.com/users/MickaelBergem/following{/other_user}","gists_url":"https://api.github.com/users/MickaelBergem/gists{/gist_id}","starred_url":"https://api.github.com/users/MickaelBergem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MickaelBergem/subscriptions","organizations_url":"https://api.github.com/users/MickaelBergem/orgs","repos_url":"https://api.github.com/users/MickaelBergem/repos","events_url":"https://api.github.com/users/MickaelBergem/events{/privacy}","received_events_url":"https://api.github.com/users/MickaelBergem/received_events","type":"User","site_admin":false},"repo":{"id":46616403,"name":"dnsstresss","full_name":"MickaelBergem/dnsstresss","owner":{"login":"MickaelBergem","id":3510190,"avatar_url":"https://avatars.githubusercontent.com/u/3510190?v=3","gravatar_id":"","url":"https://api.github.com/users/MickaelBergem","html_url":"https://github.com/MickaelBergem","followers_url":"https://api.github.com/users/MickaelBergem/followers","following_url":"https://api.github.com/users/MickaelBergem/following{/other_user}","gists_url":"https://api.github.com/users/MickaelBergem/gists{/gist_id}","starred_url":"https://api.github.com/users/MickaelBergem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MickaelBergem/subscriptions","organizations_url":"https://api.github.com/users/MickaelBergem/orgs","repos_url":"https://api.github.com/users/MickaelBergem/repos","events_url":"https://api.github.com/users/MickaelBergem/events{/privacy}","received_events_url":"https://api.github.com/users/MickaelBergem/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MickaelBergem/dnsstresss","description":"Simple Go program to stress test DNS servers","fork":false,"url":"https://api.github.com/repos/MickaelBergem/dnsstresss","forks_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/forks","keys_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/teams","hooks_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/hooks","issue_events_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/issues/events{/number}","events_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/events","assignees_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/assignees{/user}","branches_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/branches{/branch}","tags_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/tags","blobs_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/git/refs{/sha}","trees_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/statuses/{sha}","languages_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/languages","stargazers_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/stargazers","contributors_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/contributors","subscribers_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/subscribers","subscription_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/subscription","commits_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/commits{/sha}","git_commits_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/git/commits{/sha}","comments_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/comments{/number}","issue_comment_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/issues/comments{/number}","contents_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/contents/{+path}","compare_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/merges","archive_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/downloads","issues_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/issues{/number}","pulls_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/pulls{/number}","milestones_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/milestones{/number}","notifications_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/labels{/name}","releases_url":"https://api.github.com/repos/MickaelBergem/dnsstresss/releases{/id}","created_at":"2015-11-21T13:29:16Z","updated_at":"2015-11-21T13:51:36Z","pushed_at":"2015-11-22T01:59:00Z","git_url":"git://github.com/MickaelBergem/dnsstresss.git","ssh_url":"git@github.com:MickaelBergem/dnsstresss.git","clone_url":"https://github.com/MickaelBergem/dnsstresss.git","svn_url":"https://github.com/MickaelBergem/dnsstresss","homepage":null,"size":188,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MickaelBergem/dnsstresss/pulls/4"},"html":{"href":"https://github.com/MickaelBergem/dnsstresss/pull/4"},"issue":{"href":"https://api.github.com/repos/MickaelBergem/dnsstresss/issues/4"},"comments":{"href":"https://api.github.com/repos/MickaelBergem/dnsstresss/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/MickaelBergem/dnsstresss/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/MickaelBergem/dnsstresss/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MickaelBergem/dnsstresss/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/MickaelBergem/dnsstresss/statuses/41fb722e8e8e3dd00e2108baac9d5394a04332df"}}}}