Fixes for the error type

This commit is contained in:
Miek Gieben 2011-11-07 21:23:50 +01:00
parent de1ee51809
commit 11c7307b5b
2 changed files with 7 additions and 1 deletions

View File

@ -24,7 +24,7 @@ func main() {
// Simple sync query, nothing fancy
r, err := c.Exchange(m, config.Servers[0])
if err != nil {
fmt.Printf("%s\n", err.String())
fmt.Printf("%s\n", err.Error())
os.Exit(1)
}

View File

@ -156,6 +156,12 @@ func dnsMaraLike(l *lexer) stateFn {
func dnsPowerdnsLike(l *lexer) stateFn {
l.verbose("PowerdnsLike")
func dnsYadifaLike(l *lexer) stateFn {
l.verbose("YadifaLike")
l.setString(".,CLASS0,TYPE0,QUERY,NOERROR,QR,aa,tc,rd,ra,ad,cd,z,0,0,0,0,do,0,nsid")
l.probe()
l.setString(".,CLASS42,TXT,QUERY,NOERROR,qr,aa,tc,rd,ra,ad,cd,z,0,0,0,0,do,0,nsid")
l.probe()
return nil
}