public Set<ResourceRecord> getRecords( QuestionRecord question ) throws DnsException
{
try
{
GetRecords getRecords = new GetRecords( question );
String baseDn = catalog.getBaseDn( question.getDomainName() );
CoreSession session = directoryService.getSession();
DirContext dirContext = new ServerLdapContext( directoryService, session, new LdapName( baseDn ) );
return getRecords.execute( dirContext, null );
}
catch ( LdapNoSuchObjectException lnnfe )
{
LOG.debug( "Name for DNS record search does not exist.", lnnfe );