I'm following your guide on my way to implementing my rust DNS server, but serval trials with your script on catching DNS querying packets lasted an empty query-packet.txt.
I'm using Arch Linux and my netcat version is GNU netcat 0.7.1. The proper way to catch the packet shall be as the following script, instead.
# use `-p` option explicitly
nc -u -l -p 1053 google.com
You might be using other versions of netcat, or the (GNU version) netcat itself had an update on its CLI. After all the script does not work on my environment, please take a look.
I'm following your guide on my way to implementing my rust DNS server, but serval trials with your script on catching DNS querying packets lasted an empty
query-packet.txt.I'm using Arch Linux and my
netcatversion is GNU netcat 0.7.1. The proper way to catch the packet shall be as the following script, instead.# use `-p` option explicitly nc -u -l -p 1053 google.comYou might be using other versions of
netcat, or the (GNU version)netcatitself had an update on its CLI. After all the script does not work on my environment, please take a look.