return; String dnsQueryName = dnsMsg.getQuestion().getName().toString(true); if (!ruleDatabase.isBlocked(dnsQueryName.toLowerCase(Locale.ENGLISH))) { Log.i(TAG, "handleDnsRequest: DNS Name " + dnsQueryName + " Allowed, sending to " + destAddr);
/** * Returns the name of the records * @see Name */ public Name getName() { return first().getName(); }
/** * Returns the name of the records * @see Name */ public Name getName() { return first().getName(); }
private String convertRecordOwnerToString(Record record) { if (record == null) return null; String ownerString = record.getName().toString(); ownerString = ownerString.toLowerCase(); return ownerString; }
/** * Returns the name of the records * @see Name */ public Name getName() { return first().getName(); }
/** * Returns the name of the records * @see Name */ public Name getName() { return first().getName(); }
private void initialize(Master master) throws IOException { m_records = new HashMap<String, List<Record>>(); for (Record rec = null; (rec = master.nextRecord()) != null;) { String name = rec.getName().toString(); List<Record> list = m_records.get(name); if (list == null) { list = new ArrayList<Record>(); m_records.put(name, list); } list.add(rec); } }
public static void main(String[] args) throws TextParseException, IOException { File zoneFile = new File("zones/unlogic.se"); Master master = new Master(zoneFile.getPath(),Name.fromString(zoneFile.getName(), Name.root)); Record record = master._nextRecord(); Logger LOG = Logger.getLogger(ZoneDissasembler.class); while(record != null){ LOG.info("Class: " + record.getClass()); LOG.info("Name: " + record.getName()); LOG.info("toString: " + record.toString()); record = master._nextRecord(); } }
private final void maybeAddRecord(Record record) throws IOException { int rtype = record.getType(); Name name = record.getName(); if (rtype == Type.SOA && !name.equals(origin)) { throw new IOException("SOA owner " + name + " does not match zone origin " + origin); } if (name.subdomain(origin)) addRecord(record); }
/** * Indicates that the record should be inserted into the zone replacing any * other records with the same name and type. */ public void replace(Record record) { delete(record.getName(), record.getType()); add(record); }
private final void maybeAddRecord(Record record) throws IOException { int rtype = record.getType(); Name name = record.getName(); if (rtype == Type.SOA && !name.equals(origin)) { throw new IOException("SOA owner " + name + " does not match zone origin " + origin); } if (name.subdomain(origin)) addRecord(record); }
private final void maybeAddRecord(Record record) throws IOException { int rtype = record.getType(); Name name = record.getName(); if (rtype == Type.SOA && !name.equals(origin)) { throw new IOException("SOA owner " + name + " does not match zone origin " + origin); } if (name.subdomain(origin)) addRecord(record); }
/** * Indicates that the record should be inserted into the zone replacing any * other records with the same name and type. */ public void replace(Record record) { delete(record.getName(), record.getType()); add(record); }
private final void maybeAddRecord(Record record) throws IOException { int rtype = record.getType(); Name name = record.getName(); if (rtype == Type.SOA && !name.equals(origin)) { throw new IOException("SOA owner " + name + " does not match zone origin " + origin); } if (name.subdomain(origin)) addRecord(record); }
/** * Indicates that the record should be inserted into the zone replacing any * other records with the same name and type. */ public void replace(Record record) { delete(record.getName(), record.getType()); add(record); }
/** * Indicates that the record should be inserted into the zone replacing any * other records with the same name and type. */ public void replace(Record record) { delete(record.getName(), record.getType()); add(record); }