Solved...
I just checked the packet send by wireshark an checked the packed structure.
i made packet useing byte array.
header section almost is static , for the query name made a dynamic byte array.
and Qtype and QClass were static.
so i put whole the arrays in a unit array that containing the bytes which were required.
do like this:
byte [] id={0x11,0x12};
byte [] Flags={0x00,0x00};
byte [] QDcount={0x00,0x01};
byte [] .......
tnx again.