MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / maybeAddRecord

Method maybeAddRecord

src/main/java/core/org/xbill/DNS/Zone.java:113–125  ·  view source on GitHub ↗
(Record record)

Source from the content-addressed store, hash-verified

111}
112
113private final void
114maybeAddRecord(Record record) throws IOException {
115 int rtype = record.getType();
116 Name name = record.getName();
117
118 if (rtype == Type.SOA && !name.equals(origin)) {
119 throw new IOException("SOA owner " + name +
120 " does not match zone origin " +
121 origin);
122 }
123 if (name.subdomain(origin))
124 addRecord(record);
125}
126
127/**
128 * Creates a Zone from the records in the specified master file.

Callers 2

ZoneMethod · 0.95
fromXFRMethod · 0.95

Calls 5

equalsMethod · 0.95
subdomainMethod · 0.95
addRecordMethod · 0.95
getTypeMethod · 0.65
getNameMethod · 0.65

Tested by

no test coverage detected