Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] netcat usage may be inproper for GNU's netcat in chaper 1. #17

Open
ClSlaid opened this issue Jan 10, 2022 · 1 comment
Open

[bug] netcat usage may be inproper for GNU's netcat in chaper 1. #17

ClSlaid opened this issue Jan 10, 2022 · 1 comment

Comments

@ClSlaid
Copy link

ClSlaid commented Jan 10, 2022

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.

nc -u -l 1053 google.com

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.

@EmilHernvall
Copy link
Owner

There's a few different versions of netcat around, and they seem to take incompatible arguments. I don't remember on top of my head which version I used, but I'll check and add a note about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants