Skip to content

Commit 88286bc

Browse files
committed
Fix DNS PSF: use @SEGMENT.SEQUENCE instead of @SEGMENT.ROLES for frame creation
- Changed from ROLES format to SEQUENCE format matching dns_google_com.psf - PSF parser expects SEQUENCE with ROLE/PHASE/FORMAT structure - This fixes 'Failed to create frames for protocol: dns' error on server - DNS queries fake google.com lookups for Iran DPI evasion
1 parent 8cd747f commit 88286bc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

protocols/dns/dns.psf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@
112112
{ FORMAT: DnsResponse; FIELD: response_len; SEMANTIC: LENGTH };
113113
{ FORMAT: DnsResponse; FIELD: response_data; SEMANTIC: PAYLOAD };
114114

115-
@SEGMENT.ROLES
115+
@SEGMENT.SEQUENCE
116116

117-
ROLE CLIENT
118-
HANDSHAKE DnsHandshakeQuery,
119-
DATA DnsQuery;
117+
// DNS handshake (initial query/response)
118+
{ ROLE: CLIENT; PHASE: HANDSHAKE; FORMAT: DnsHandshakeQuery };
119+
{ ROLE: SERVER; PHASE: HANDSHAKE; FORMAT: DnsHandshakeResponse };
120120

121-
ROLE SERVER
122-
HANDSHAKE DnsHandshakeResponse,
123-
DATA DnsResponse;
121+
// Ongoing DNS queries (data phase)
122+
{ ROLE: CLIENT; PHASE: DATA; FORMAT: DnsQuery };
123+
{ ROLE: SERVER; PHASE: DATA; FORMAT: DnsResponse };

0 commit comments

Comments
 (0)