https://github.com/dpb587/dns-test-server
https://github.com/dpb587/dns-test-server
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/dpb587/dns-test-server
- Owner: dpb587
- Created: 2018-11-18T21:17:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-31T04:20:29.000Z (over 7 years ago)
- Last Synced: 2025-02-10T11:48:33.420Z (over 1 year ago)
- Language: Go
- Size: 106 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dns-fuzz
A DNS server to generate fake responses for testing client behavior.
$ go run main.go &
$ dig -p 35053 +tcp @127.0.0.1 rcode-servfail.delay-8s.size-4.ttl-7.hdr-tc.hdr-aa.test
; <<>> DiG 9.8.3-P1 <<>> -p 35053 +tcp @127.0.0.1 rcode-servfail.delay-8s.size-4.ttl-7.hdr-tc.hdr-aa.test
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 37250
;; flags: qr aa tc rd; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;rcode-servfail.delay-8s.size-4.ttl-7.hdr-tc.hdr-aa.test. IN A
;; ANSWER SECTION:
rcode-servfail.delay-8s.size-4.ttl-7.hdr-tc.hdr-aa.test. 7 IN A 203.0.113.0
rcode-servfail.delay-8s.size-4.ttl-7.hdr-tc.hdr-aa.test. 7 IN A 203.0.113.1
rcode-servfail.delay-8s.size-4.ttl-7.hdr-tc.hdr-aa.test. 7 IN A 203.0.113.2
rcode-servfail.delay-8s.size-4.ttl-7.hdr-tc.hdr-aa.test. 7 IN A 203.0.113.3
;; Query time: 8003 msec
;; SERVER: 127.0.0.1#35053(127.0.0.1)
;; WHEN: Tue May 16 23:03:29 2017
;; MSG SIZE rcvd: 357