Answer to Question #54921 in Java | JSP | JSF for Jax

Question #54921
/*
** file: BasicDNS.java
** purpose: This interface defines the services required of
** any DNS.
*/
public interface BasicDNS {
// update(domain, ipa) adds (or replaces)
// the IPA for this domain to the DNS database.
public void update(String domain, String ipa);
// lookUp(ipa, domain) returns the IPA associated
// with this domain, or null if it is not found in
// the database (or not returnable for legal reasons,
// such as blacklisting).
// The first argument, ipa, is the IPA from which this
// request originated.
public String lookUp(String ipa, String domain);
}

• Implement a class that implements the interface, using the fastest suitable class from the
collections framework to store and look up domain IPAs.
• Implement a test program that exercises your DNS class. It should have a simple, interactive
console user interface.
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS