DNS packets over TCP
FIXED- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- DNS packets over TCP
15-08-2019 5:34 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Anyone here know anything about this?
My nameserver has been working just dandy via UDP for over a year - no real hassles there.
Decided i need to get it working via TCP too - like all nameservers should - and have discovered that the first two bytes in the stream are in fact the length of the stream - when it's a UDP packet it's the ID instead however with TCP it's preceded by the length.
So I've modified my nameserver to work with that (not really needed using indy sockets I just removed those two bytes) however when sending the reply via TCP the local machine successfully gets the reply (using nslookup and set vc) but the remote machine never gets it - and thats with the new length put in to preceed the XID and without it.
Even wireshark fails to see the packet which is odd.
Mook? lol
Fixed! Go to the fix.
16-08-2019 2:41 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Nevermind... I found it!
Length was just one byte out - screwing up nslookups ability to parse the returned data.
Sorted now and it works.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page