Yes, it's possible to disable DNS lookups completely for a job-type.
Just remove IpAddressDecorator (hostname --> IP) and HostnameDecorator
(IP --> hostname) from the list of decorators:
decorator.classNames.0=se.sitic.megatron.decorator.AsnGeoIpDecorator
decorator.classNames.1=se.sitic.megatron.decorator.CountryCodeFromHostnameDecorator
decorator.classNames.2=se.sitic.megatron.decorator.CountryCodeDecorator
Default is to use the the CombinedDecorarator, which use the following
decorators:
# List of class name for CombinedDecorator to use.
decorator.combinedDecorator.classNames.0=se.sitic.megatron.decorator.IpAddressDecorator
decorator.combinedDecorator.classNames.1=se.sitic.megatron.decorator.AsnGeoIpDecorator
decorator.combinedDecorator.classNames.2=se.sitic.megatron.decorator.HostnameDecorator
decorator.combinedDecorator.classNames.3=se.sitic.megatron.decorator.CountryCodeFromHostnameDecorator
decorator.combinedDecorator.classNames.4=se.sitic.megatron.decorator.CountryCodeDecorator
In Megatron-lingo a "decorator" adds (or modify) data for a log record, e.g. DNS name from
an IP address.
> I did test with the inclusion of "dnsJava.useDnsJava=false" - but does not make a difference.
Nope, this just switch class library for the DNS lookups. Please turn this property on because
dnsjava <
http://www.dnsjava.org/> is much faster than the implementation in the JDK.
/Tor
On 2014-04-03 11:32, Kick Megatron wrote:
> Hi, I have a parser for compromised accounts, where I use a field as hostname to be able to map the actual organisation.
> The hostname however do not have a DNS entry, it is purely used to map the organisation. And this is filling the megatron.log with the errors like below.
>
> I did test with the inclusion of "dnsJava.useDnsJava=false" - but does not make a difference.
>
> Any advise?
>
> Thanks,
> Kick
>
>
> Example:
>
> Organization 1
> ...