Setting the record type

Top  Previous  Next

You may filter the type of records returned in a DNS query by setting the record type using the DnsRequest#setRecordType method.

 

Example

 

// create new DNS request

DnsRequest request = new DnsRequest("ns1.west.cox.net","jscape.com");

 

// set record type to return only MailExchanger records

request.setRecordType(Dns.TYPE_MX);





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC