Packages that use DnsMessage.Builder
Package
Description
DNS message structures with wire-format parsing and serialization (no transport), from the MiniDNS 1.0.0 core subset (see
org.minidns). DNS resource record types (A, AAAA, NS, SOA, MX, TXT, SRV and the DNSSEC records) with wire-format parsing, from the MiniDNS 1.0.0 core subset (see
org.minidns).Uses of DnsMessage.Builder in org.minidns.dnsmessage
Methods in org.minidns.dnsmessage that return DnsMessage.BuilderModifier and TypeMethodDescriptionDnsMessage.Builder.addAdditionalResourceRecord(Record<? extends Data> record) Append a record to the additional section.DnsMessage.Builder.addAdditionalResourceRecords(List<Record<? extends Data>> records) Append records to the additional section.Append a record to the answer section.DnsMessage.Builder.addAnswers(Collection<Record<? extends Data>> records) Append records to the answer section.DnsMessage.Builder.addNameserverRecords(Record<? extends Data> record) Append a record to the authority section.DnsMessage.Builder.addQuestion(Question question) Append a question to the question section.DnsMessage.asBuilder()Create a builder holding a copy of the content of this message.Question.asMessageBuilder()Wrap this question in a DnsMessage builder.static DnsMessage.BuilderDnsMessage.builder()Create an empty builder for a new DNS message.DnsMessage.getResponseBuilder(DnsMessage.RESPONSE_CODE responseCode) Create a builder for a response to this query.DnsMessage.Builder.setAdditionalResourceRecords(Collection<Record<? extends Data>> records) Replace the additional section by a copy of the given records.DnsMessage.Builder.setAnswers(Collection<Record<? extends Data>> records) Replace the answer section by a copy of the given records.DnsMessage.Builder.setAuthenticData(boolean authenticData) Set the authentic data flag on this DNS message.DnsMessage.Builder.setAuthoritativeAnswer(boolean authoritativeAnswer) Set the authoritative answer flag.DnsMessage.Builder.setCheckingDisabled(boolean checkingDisabled) /** Change the check status of this packet.DnsMessage.Builder.setId(int id) Set the current DNS message id.DnsMessage.Builder.setNameserverRecords(Collection<Record<? extends Data>> records) Replace the authority section by a copy of the given records.DnsMessage.Builder.setOpcode(DnsMessage.OPCODE opcode) Set the opcode of the DNS message header.DnsMessage.Builder.setQrFlag(boolean query) Set the QR flag.DnsMessage.Builder.setQuestion(Question question) Set the question part of this message.DnsMessage.Builder.setQuestions(List<Question> questions) Set the question part of this message.DnsMessage.Builder.setReceiveTimestamp(long receiveTimestamp) Set the time at which the message was received.DnsMessage.Builder.setRecursionAvailable(boolean recursionAvailable) Set the recursion available flog from this DNS message.DnsMessage.Builder.setRecursionDesired(boolean recursionDesired) Set the recursion desired flag on this message.DnsMessage.Builder.setResponseCode(DnsMessage.RESPONSE_CODE responseCode) Set the response code of the DNS message header.DnsMessage.Builder.setTruncated(boolean truncated) Set the truncation bit on this DNS message.Constructors in org.minidns.dnsmessage with parameters of type DnsMessage.BuilderModifierConstructorDescriptionprotectedDnsMessage(DnsMessage.Builder builder) Construct a DNS message from the state of the given builder.Uses of DnsMessage.Builder in org.minidns.record
Methods in org.minidns.record that return DnsMessage.BuilderModifier and TypeMethodDescriptionRecord.getQuestionMessage()Get a message builder for the question that this record answers.