Setting the record type |
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); |