Link to home
Start Free TrialLog in
Avatar of jose_sam
jose_sam

asked on

Help me in finding the Server IP from an email address

Hello all,

I want to find the Ip of the machine of the SMTP server, given an email address.... I found there is some way of doing this thorught JNDI or something like that.... But its not so clear.. Can some one please give me a simple example that clearly shows how to do the above purpose?

Thanks in advance,
SOLUTION
Avatar of thetool721
thetool721

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jose_sam
jose_sam

ASKER

Thanks for the reply..
I want to do it from a java program... I am trying to develop an smtp server...
so you need to implement your own DNS libarary (or find some OpenSource)
Thanks for the reply..
I want to do it from a java program... I am trying to develop an smtp server...
Avatar of CEHJ
Or Runtime.exec nslookup until you can find the right libraries
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
or if you are using Java 1.4 you can use JavaSoft's implementation

"DNS Service Provider for the Java Naming Directory InterfaceTM (JNDI)"

http://java.sun.com/j2se/1.4/docs/guide/jndi/jndi-dns.html
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
jose_sam:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- Split points between thetool721 , heyhey_ and tutran

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Venabili
EE Cleanup Volunteer