Hi,
Is there any way to convert domain-string to hex.
I looking to drop string by iptables for DNS service, for example I wanna drop this domain "luse0.com", What's the command to convert string to hex and what about this numbers in the rule below: 34 and 80
iptables --insert INPUT -p udp --dport 53 -m string --from 34 --to 80 --algo bm --hex-string '|056c7573653003636f6d00|' -j DROP -m comment --comment "DROP DNS Q luse0.com"