Settings

Theme

Linux network emulator (NetEm) example: Script for making DNS requests delayed

gist.github.com

1 points by przemoc 8 years ago · 1 comment

Reader

przemocOP 8 years ago

NetEm seems to be rarely known and used traffic control feature available on Linux.

The linked script allows you to delay sending DNS requests (IP packets with destination port set to 53) on given interface. Normally it is useless, but it may be useful for debugging some hard network-related cases in your software.

The script may also work as a base for other network-related experiments using netem. You can read more about it here: http://man7.org/linux/man-pages/man8/tc-netem.8.html

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection