DNS Query Processing and DNS Response Spoofing [Документация VAS Experts]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
en:dpi:dpi_options:dns_substitution [2025/09/22 12:56] – [Management] elena.krasnobryzhen:dpi:dpi_options:dns_substitution [2025/09/22 12:57] (current) – [Configuration] elena.krasnobryzh
Line 32: Line 32:
 mail.ru MX smtp.googlemail.com mail.ru MX smtp.googlemail.com
 </code> </code>
-  - Convert the text file to a binary format understandable by DPI using the ''dns2dic'' utility:<code bash>cat test.txt|dns2dic test.bin</code>+  - Convert the text file to a binary format understandable by DPI using the ''dns2dic'' utility:<code bash>cat test.txt|dns2dic test.bin</code> Reverse conversion using the dic2dns utility.
   - Place the resulting binary file in the directory where DPI will read it from:<code bash>cp test.bin /var/lib/dpi/dns.bin</code>   - Place the resulting binary file in the directory where DPI will read it from:<code bash>cp test.bin /var/lib/dpi/dns.bin</code>
   - Create a service profile:<code bash>fdpi_ctrl load profile --service 19 --profile.name test_193 --profile.json '{ "dns_list" : "/var/lib/dpi/dns.bin" }'</code>   - Create a service profile:<code bash>fdpi_ctrl load profile --service 19 --profile.name test_193 --profile.json '{ "dns_list" : "/var/lib/dpi/dns.bin" }'</code>