{"id":1654,"date":"2020-10-11T11:08:03","date_gmt":"2020-10-11T09:08:03","guid":{"rendered":"https:\/\/blog.mhasin.eu\/?p=1654"},"modified":"2020-10-11T11:36:33","modified_gmt":"2020-10-11T09:36:33","slug":"dns-test-performance-shotgun","status":"publish","type":"post","link":"https:\/\/blog.mhasin.eu\/?p=1654","title":{"rendered":"DNS test performance shotgun"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;github.com\/CZ-NIC\/shotgun<\/code><\/pre>\n\n\n\n<p>Download:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> git clone https:\/\/github.com\/CZ-NIC\/shotgun.git<\/code><\/pre>\n\n\n\n<p>Download dnsjit:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> git clone https:\/\/github.com\/DNS-OARC\/dnsjit.git<\/code><\/pre>\n\n\n\n<p>Install:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get install libluajit-5.1-dev libpcap-dev luajit liblmdb-dev libck-dev libgnutls28-dev libuv1-dev libnghttp2-dev\napt-get install autoconf automake libtool\napt-get install make pkg-config check g++ librsync-dev libz-dev libssl-dev uthash-dev libyajl-dev\nautoreconf -vif<\/code><\/pre>\n\n\n\n<p>Install dnsjit:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd dnsjit\nsh autogen.sh\n.\/configure\nmake<\/code><\/pre>\n\n\n\n<p>ShotGun:<\/p>\n\n\n\n<p>Vytvorenie pcap zaznamu realneho DNS trafiku<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> tcpdump -s 0 port 53 -i ens192 -w mycap.pcap<\/code><\/pre>\n\n\n\n<p>Install package:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip3 install dnspython\npip3 install dpkt\napt install python3 python-dpkt python-dnspython <\/code><\/pre>\n\n\n\n<p>system settings:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ulimit -n 1000000\nsysctl -w net.ipv4.ip_local_port_range=\"1025 60999\"\nsysctl -w net.core.rmem_default=\"8192000\"<\/code><\/pre>\n\n\n\n<p>Vytvorenie pcap pre shotgun:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/pellet.py mycap.pcap -c 140000 -t 100 -r 147.232.191.130<\/code><\/pre>\n\n\n\n<p>-c = pocet klientov<\/p>\n\n\n\n<p>-t = cas ako dlho sa ma meriat<\/p>\n\n\n\n<p>-r = IP DNS serveru<\/p>\n\n\n\n<p>Testovanie:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/shotgun.lua -P udp -p 53 -s \"::1\" pellets.pcap<\/code><\/pre>\n<div class=\"pdf24Plugin-cp\"> \t<form name=\"pdf24Form0\" method=\"post\" action=\"https:\/\/doc2pdf.pdf24.org\/wordpress.php\" target=\"pdf24PopWin\" onsubmit=\"var pdf24Win = window.open('about:blank', 'pdf24PopWin', 'resizable=yes,scrollbars=yes,width=600,height=250,left='+(screen.width\/2-300)+',top='+(screen.height\/3-125)+''); pdf24Win.focus(); if(typeof pdf24OnCreatePDF === 'function'){void(pdf24OnCreatePDF(this,pdf24Win));}\"> \t\t<input type=\"hidden\" name=\"blogCharset\" value=\"Cw1x07UAAA==\" \/><input type=\"hidden\" name=\"blogPosts\" value=\"MwQA\" \/><input type=\"hidden\" name=\"blogUrl\" value=\"yygpKSi20tdPyslP18vNSCzOzNNLLQUA\" \/><input type=\"hidden\" name=\"blogName\" value=\"c\/LxdwcA\" \/><input type=\"hidden\" name=\"blogValueEncoding\" value=\"gzdeflate base64\" \/><input type=\"hidden\" name=\"postId_0\" value=\"MzQzNQEA\" \/><input type=\"hidden\" name=\"postTitle_0\" value=\"c\/ELVihJLS5RKEgtSssvyk3MS05VKM7IL0kvzQMA\" \/><input type=\"hidden\" name=\"postLink_0\" value=\"yygpKSi20tdPyslP18vNSCzOzNNLLdW3L7A1NDM1AQA=\" \/><input type=\"hidden\" name=\"postAuthor_0\" value=\"y00syfcwNAIA\" \/><input type=\"hidden\" name=\"postDateTime_0\" value=\"MzIwMtA1BCJDBUNDK0MDKwNjAA==\" \/><input type=\"hidden\" name=\"postContent_0\" value=\"rVRbb5swFH7nVxwxaS+VISTt2mRJpKmVpr501TrtYS+RYxxwMbaF7VT01+8YQpR1aZdK4wEO5\/ady2dHc9NwYJJau4ifDFlLzSrCdM7j5Tx8lqVzxs4+fji\/\/Ny9CuFKv06YrtPrX+Tu9jq1pXaFV\/O085+nmHEZ4TM3yxv9pKSm+Qy1O90\/4ADzo4NWHHrkNH0VMUHLW6iQK\/so3P8Cv7l7IN++fL9O+7Svod8q66iUp6NS40jBHYg+EKRYS08RgVwkGcn5NmgMo6aXO1PnVOfrwYwpd1KhvJN2fDX8++0+hypCV+PwG70Epd5pptWmE2pa8RDgtJZ\/eXZGUxUkuIsCWMlZBcXZWYhobKvYgPc8CNbKTvSupLYctC19lH0tCNnwDp1sxeaNob57o2wgQWTLrrWCq8SWUZL21fuGR6GhY5gPyLKvXh2ALX+2boulKoETwIXAM31WtPbQcCoVLzUgR8A1dCMqfzrrHDO5rw0QCyMwunFwMQEigCubTcdAnqBuES0JkG8Nx1BW0YKfPh0jzGS\/V5yTaV2pVfSn2lQucGCv6J0muy8J9r08pIBjZdrWOl6D5c4JVdjTy\/RS1Eh5oiAbdU+EqZiTYTKKu0SY7Tm+VhhI5SoMcNVQVfBFnI3GF\/BpNJ1O4xcxDNeYNDWvVznfUC\/dIr7CYWPy+FjtLxcfSt7dQqf3kaSGS4ngpj3YKBAG2XloC4gLHQJpUHGZjCfjJJtmSTYZHSsJwxbIFoZHs5KCK6e3B0zFVAtg1AKtNOQSqWkpHl2oeSOoO3Rs0PH2vmOu5c2WNwfMXf7gFvNS7Ps9bQ73M95VQO7B59ik6UhtIZ7Nshj6QdgjlP4N\" \/> \t\t<a href=\"https:\/\/www.pdf24.org\" target=\"_blank\" title=\"www.pdf24.org\" rel=\"nofollow\"><img src=\"https:\/\/blog.mhasin.eu\/wp-content\/plugins\/pdf24-post-to-pdf\/img\/pdf_32x32.png\" alt=\"\" border=\"0\" height=\"32\" \/><\/a> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/span> \t\t<span class=\"pdf24Plugin-cp-text\">Send article as PDF<\/span> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/span> \t\t<input class=\"pdf24Plugin-cp-input\" style=\"margin: 0px;\" type=\"text\" name=\"sendEmailTo\" placeholder=\"Enter email address\" \/> \t\t<input class=\"pdf24Plugin-cp-submit\" style=\"margin: 0px;\" type=\"submit\" value=\"Send\" \/> \t<\/form> <\/div>","protected":false},"excerpt":{"rendered":"Download: Download dnsjit: Install: Install dnsjit: ShotGun: Vytvorenie pcap zaznamu realneho DNS trafiku Install package: system settings: Vytvorenie pcap pre shotgun: -c = pocet klientov -t = cas ako dlho sa ma meriat -r = IP DNS serveru Testovanie: &nbsp;&nbsp; Send article as PDF &nbsp;&nbsp;\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"arc_restricted_post":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1654","post","type-post","status-publish","format-standard","hentry","category-nezaradene"],"_links":{"self":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts\/1654","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1654"}],"version-history":[{"count":2,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts\/1654\/revisions"}],"predecessor-version":[{"id":1659,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts\/1654\/revisions\/1659"}],"wp:attachment":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}