Fwd: Raw Expression matching DNS Query?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Does anyone have examples showing the use of a raw expression to
filter DNS domain name information?

I'm trying to DNAT a packet to a specific DNS server's IP address when
the domain name in the query is a match.

Ex. if the domain in the query is yahoo.com then redirect to 8.8.8.8

I am not sure on the hex syntax.

What is not working:

add rule mytable prerouting meta l4proto udp udp dport 53 @th,160,120
0x7961686f6f2e636f6d dnat 8.8.8.8
add rule mytable prerouting meta l4proto udp udp dport 53 @th,160,120
0x057961686f6f03636f6d00 dnat 8.8.8.8

Thanks in advance,

adsquaired



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux