This commit is contained in:
Miek Gieben 2011-03-31 11:23:41 +02:00
parent 6a86b5ae76
commit 70692450c7
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ func handleXfrOut(d *dns.Conn, i *dns.Msg) os.Error {
if i.IsAxfr() {
fmt.Printf("Incoming Axfr request seen\n")
if i.Question[0].Name == Zone.name {
fmt.Printf("Matchies current zone\n")
fmt.Printf("Matches current zone\n")
if !Zone.correct {
fmt.Printf("Zone was not deemed correct\n")
if err := d.WriteMsg(i); err != nil {

View File

@ -41,7 +41,7 @@ func handle(d *dns.Conn, i *dns.Msg) {
}
if Zone.name != "" {
// We have transfered a zone and can check it. For now assume ok.
Zone.correct = true
Zone.correct = false
}
}
@ -72,7 +72,7 @@ func main() {
// Outgoing queries
dns.InitQueryChannels()
go query("tcp" err)
go query("tcp", err)
go query("udp", err)
// Incoming queries