public boolean dnsDomainIs(String host,String domain){
  return host.endsWith(domain);
}

public boolean dnsDomainIs ( String host , String domain ) { return host . endsWith ( domain ) ; }
tests if an url is in a given domain .
