Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Java ip dns email host
I am trying to setup an smtp server.  I need a way to associate
bob@yahoo.com with yahoo's smtp server smtp.a2.yahoo.net or something.
I know that a dns server keeps an MX record to record a server for
email. I just need a way to translate @yahoo too smtp.a2.yahoo.net.

I tried using java.net.InetAddress.getByName("bob@yahoo.com")
Any other suggestions?


Report this thread to moderator Post Follow-up to this message
Old Post
WERNOTKIN
09-18-04 02:01 AM


Re: Java ip dns email host
I don't know why it shows bxb@yxahxxo.xom it should be "bob@yahoo.com"


Report this thread to moderator Post Follow-up to this message
Old Post
WERNOTKIN
09-18-04 02:01 AM


Re: Java ip dns email host
NOT bob@yahoo.com bob @ yahoo . com


Report this thread to moderator Post Follow-up to this message
Old Post
WERNOTKIN
09-18-04 02:01 AM


Re: Java ip dns email host
WERNOTKIN wrote:
> I am trying to setup an smtp server.  I need a way to associate
> bob@yahoo.com with yahoo's smtp server smtp.a2.yahoo.net or something.
> I know that a dns server keeps an MX record to record a server for
> email. I just need a way to translate @yahoo too smtp.a2.yahoo.net.
>

As you said, you need to connect to a DNS server to get the MX record.
I found it was easier to do this by using C/C++.


--
Song

/* E-mail.c */
#define User            "Yu.Song"
#define At              '@'
#define Warwick         "warwick.ac.uk"
int main() {
printf("Yu Song's E-mail: %s%c%s", User, At, Warwick);
return 0;}

Further Info. :   http://www.dcs.warwick.ac.uk/~esubbn/
 ________________________________________
_______________


Report this thread to moderator Post Follow-up to this message
Old Post
Yu SONG
09-24-04 01:59 PM


Re: Java ip dns email host
WERNOTKIN wrote:

> Any other suggestions?

<http://www.dnsjava.org/>

Report this thread to moderator Post Follow-up to this message
Old Post
Thomas Schodt
09-24-04 09:03 PM


Re: Java ip dns email host
I found out how!!! JNDI!!!

DirContext ictx = new InitialDirContext(env);
Attributes attrs1 = ictx.getAttributes("host1", new String[] {"MX"});


Report this thread to moderator Post Follow-up to this message
Old Post
WERNOTKIN
10-27-04 08:58 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:06 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.