This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"dns" | |
"fmt" | |
) | |
func HelloQuery(w dns.RequestWriter, req *dns.Msg, ) { | |
// client.Attemps = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/sha1" | |
"fmt" | |
"io" | |
) | |
const ITER = 100000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"github.com/miekg/dns" | |
"os" | |
"unbound" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"github.com/miekg/dns" | |
"flag" | |
"github.com/miekg/pcap" | |
"os" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/miekg/dns" | |
"math/rand" | |
"os" | |
"time" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# Retrieve RFC and/or drafts. By Miek Gieben (c) 2012, licensed under the GPL v2. | |
# RFC urls | |
# http://tools.ietf.org/pdf/rfc5737 | |
# http://tools.ietf.org/rfc/rfc5737.txt | |
# Draft urls | |
# http://tools.ietf.org/id/draft-gieben-auth-denial-of-existence-dns-00.txt | |
# http://tools.ietf.org/pdf/draft-gieben-auth-denial-of-existence-dns-00.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% ./q nul\\000gap.test.globnix.net | |
;; opcode: QUERY, status: NOERROR, id: 4386 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 5, ADDITIONAL: 6 | |
;; QUESTION SECTION: | |
;nul\000gap.test.globnix.net. IN A | |
;; ANSWER SECTION: | |
nul\000gap.test.globnix.net. 60 IN A 192.0.2.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
filename=$1;shift | |
case $filename in | |
*_test.go) go test "$@";; | |
*) go build "$@";; | |
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"github.com/miekg/bitradix" | |
"log" | |
"net" | |
"os" | |
"reflect" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for tld in $(awk ' { print $1 }' root-zone | egrep '^[a-z0-9-]+\.$' | sort -u); do | |
echo -n $tld: | |
if dig +dnssec DNSKEY $tld | grep -q RRSIG; then | |
echo -n DNSSEC: | |
else | |
echo -n dnssec: | |
fi | |
echo $(dig +noall +answer ${tld}cc.jpmens.net txt | awk ' { print $5" "$6" "$7" "$ |
OlderNewer