summaryrefslogtreecommitdiff
path: root/query.go
diff options
context:
space:
mode:
Diffstat (limited to 'query.go')
-rw-r--r--query.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/query.go b/query.go
new file mode 100644
index 0000000..e8f44bd
--- /dev/null
+++ b/query.go
@@ -0,0 +1,11 @@
+package main
+
+type query struct {
+ qname string
+ qtype string
+ qclass string
+}
+
+func (q *query) String() string {
+ return q.qname + " " + q.qclass + " " + q.qtype
+}