Is there a way to get the AS/400's Domain Servers?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Debra_Petta
Posted On:   Monday, March 6, 2006 03:48 PM

I'm using dnsjava to determine the mail server (so I can use java mail) but I first need to know the domain server(s) so I can set them in a system property.


From the AS/400 CL command "go cfgtcp" or "chgtcpdmn" I can see the "Domain name server (Internet address)" values.


Is there a way to programmatically obtain these values using Java either through a JT400 toolbox command or by "dumping" this information to a buffer and parsing it?

Re: Is there a way to get the AS/400's Domain Servers?

Posted By:   David_Thornton  
Posted On:   Monday, March 6, 2006 06:31 PM

You can obtain these values programmatically using the Retrieve TCP/IP Attributes (QtocRtvTCPA) API. Use the JT400 ProgramCall class to call this API from your Java program.
About | Sitemap | Contact