2
0

dns_server_test.go 312 B

12345678910111213141516171819
  1. package nebula
  2. import (
  3. "testing"
  4. "github.com/miekg/dns"
  5. )
  6. func TestParsequery(t *testing.T) {
  7. //TODO: This test is basically pointless
  8. hostMap := &HostMap{}
  9. ds := newDnsRecords(hostMap)
  10. ds.Add("test.com.com", "1.2.3.4")
  11. m := new(dns.Msg)
  12. m.SetQuestion("test.com.com", dns.TypeA)
  13. //parseQuery(m)
  14. }