feat: gettin there

This commit is contained in:
Karan Sharma 2020-12-10 15:09:05 +05:30
parent f888bd220f
commit df306e18a9
11 changed files with 181 additions and 24 deletions

12
pkg/models/models.go Normal file
View file

@ -0,0 +1,12 @@
package models
// Question represents a given query to the client.
// A question can have multiple domains, multiple nameservers
// but it's the responsibility of the client to send each question
// to the nameserver and collect responses.
type Question struct {
Domain []string
Nameservers []string
QClass []uint16
QType []uint16
}