diff options
Diffstat (limited to 'src/main/java/io/trygvis/rules/dns')
-rw-r--r-- | src/main/java/io/trygvis/rules/dns/DnsEntry.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/io/trygvis/rules/dns/DnsEntry.java b/src/main/java/io/trygvis/rules/dns/DnsEntry.java new file mode 100644 index 0000000..e7d9f4c --- /dev/null +++ b/src/main/java/io/trygvis/rules/dns/DnsEntry.java @@ -0,0 +1,19 @@ +package io.trygvis.rules.dns; + +public class DnsEntry { + public String fqdn; + public String type; + + public DnsEntry(String fqdn, String type) { + this.fqdn = fqdn; + this.type = type; + } + + public static DnsEntry a(String fqdn) { + return new DnsEntry(fqdn, "A"); + } + + public static DnsEntry aaaa(String fqdn) { + return new DnsEntry(fqdn, "AAAA"); + } +} |