public static synchronized void
setDefaultSearchPath(String [] domains) throws TextParseException {
	if (domains == null) {
		defaultSearchPath = null;
		return;
	}
	Name [] newdomains = new Name[domains.length];
	for (int i = 0; i < domains.length; i++)
		newdomains[i] = Name.fromString(domains[i], Name.root);
	defaultSearchPath = newdomains;
}
Sets the search path that will be used as the default by future Lookups.
@param domains The default search path.
@throws TextParseException A name in the array is not a valid DNS name.
src/main/java/core/org/xbill/DNS/Lookup.java