DanglingPointer
Programmer
Hi
I wanted to write a simple "dig" program that'd perform forward and reverse DNS lookups.
Looking quite easy so far thanks to java.net classes, but there doesn't seem to be anything that allows you to set which DNS server you are querying.
Is there a way to do this?
I expect you could use Datagram and DatagramSocket, but I have no idea of what a DNS Datagram would look like..
Any help appeciated.
I wanted to write a simple "dig" program that'd perform forward and reverse DNS lookups.
Looking quite easy so far thanks to java.net classes, but there doesn't seem to be anything that allows you to set which DNS server you are querying.
Is there a way to do this?
I expect you could use Datagram and DatagramSocket, but I have no idea of what a DNS Datagram would look like..
Any help appeciated.