Hi
I need to find the mail exchangers of any domain programatically,
can be possible using the resolver library function res_query().
But I m not able to execute it correctly.
I tried something like this,
char *answer=(char *)malloc(1024);
int anslen;
res_query("test.com", C_IN, T_MX,(u_char *) answer, anslen);
anslen has the value 0. and answer is blank.
so what do I do to get the desired output?
Rgds
Abhijeet.
- [ILUG-BOM] Mail Exchangers Abhijeet Tale
- [ILUG-BOM] Mail Exchangers Philip S Tellis
