DNS test performance shotgun
https://github.com/CZ-NIC/shotgun
Download:
git clone https://github.com/CZ-NIC/shotgun.git
Download dnsjit:
git clone https://github.com/DNS-OARC/dnsjit.git
Install:
apt-get install libluajit-5.1-dev libpcap-dev luajit liblmdb-dev libck-dev libgnutls28-dev libuv1-dev libnghttp2-dev
apt-get install autoconf automake libtool
apt-get install make pkg-config check g++ librsync-dev libz-dev libssl-dev uthash-dev libyajl-dev
autoreconf -vif
Install dnsjit:
cd dnsjit
sh autogen.sh
./configure
make
ShotGun:
Vytvorenie pcap zaznamu realneho DNS trafiku
tcpdump -s 0 port 53 -i ens192 -w mycap.pcap
Install package:
pip3 install dnspython
pip3 install dpkt
apt install python3 python-dpkt python-dnspython
system settings:
ulimit -n 1000000
sysctl -w net.ipv4.ip_local_port_range="1025 60999"
sysctl -w net.core.rmem_default="8192000"
Vytvorenie pcap pre shotgun:
./pellet.py mycap.pcap -c 140000 -t 100 -r 147.232.191.130
-c = pocet klientov
-t = cas ako dlho sa ma meriat
-r = IP DNS serveru
Testovanie:
./shotgun.lua -P udp -p 53 -s "::1" pellets.pcap