I am trying to figure out how to send DNS messages from an application socket adapter to DNSBL. I spent the last two days learning the basics, including experimenting with WireShark to catch an example of messaging. Now I would like to query DNS without using the dig or host command (I use Ubuntu); how can I perform this action at a low level, without the help of these tools, to wrap the query in the proper DNS message format? How should a post be posted? Hex or String?
Thanks in advance for any help. Relationship
Alessandro Ilardo
Comment added
I am learning JDev and Oracle SOA. The platform provides a Socket adapter that simply applies the transform (XSLT) and sends the message directly to the socket. As the payload parameters (for example, the host I'm looking for) are wrapped in a message, left to the developer. So basically I have an idea about how the whole DNS message is structured, but instead of putting everything in JDev, I would like to do some tests myself to make sure that I have a valid message format.
So, I don’t use any particular language (I don’t even understand why they moved my question from serverfault), and I don’t want to use any tools that would hide part of the message, for example, the header. I know that they work well. I guess this stuff has something to do with batch injection. Someone suggested I use telnet, but I only used SMTP or HTTP, I don’t know how this works for a DNS query. Does that make sense now?
source
share