dns/TODO

64 lines
1.8 KiB
Plaintext
Raw Normal View History

2011-03-31 20:06:46 +11:00
Issues:
* FunkenSturm is kaput.
* Check the network order, it works now, but this is on Intel??
* Make the testsuite work with public DNS servers
* pack/Unpack smaller. EDNS 'n stuff can be folded in
* Compression. Take stuff from Jan Mercl
2011-03-22 08:53:15 +11:00
o Tsig will probably become an interface which has all configuration
2011-03-22 19:35:25 +11:00
stuff, but this will come later. Config which has Tsig function
2011-03-31 20:32:11 +11:00
-- get TSIG working in xfrprx and see how that impact the package.
2011-03-19 00:13:42 +11:00
responseWriter with tsig/axfr/ixfr
requestWriter
2011-04-05 06:14:05 +10:00
TsigReader
XfrWriter ??? XfrReader???
Todo:
2011-03-12 01:16:12 +11:00
* Parsing from strings, going with goyacc and .cz lexer?
2011-03-06 07:14:59 +11:00
* encoding NSEC3/NSEC bitmaps, DEcoding works
2011-03-13 23:30:16 +11:00
* HIP RR (needs list of domain names, need slice stuff for that)
2011-03-22 09:02:26 +11:00
* Is subdomain, is glue helper functions for this kind of stuff
2011-03-31 04:06:44 +11:00
* Cleanups
2010-12-25 23:09:27 +11:00
2011-02-22 07:33:09 +11:00
Examples:
* Test impl of nameserver, with a small zone, 1 KSK and online signing
2011-04-01 22:15:36 +11:00
ListenAndServer(addr, Handler, map[string]string, tsig secrets)
add tis record to mesag when sending -> tsig will be calculated
up to the aolloer .Msg TsigGenerate
handler Handler === interface that
Hanlder interface {
ServeDNS
QueryDNS
}
ResponseWriter
UsingTsig() domain/ip/key
UsingTCP()
RemoteAddr string
Write(byte) n os.Error
125 // Create new connection from rwc.
126 func newConn(rwc net.Conn, handler Handler) (c *conn, err os.Error) {
127 c = new(conn)
128 c.remoteAddr = rwc.RemoteAddr().String()
129 c.handler = handler
130 c.rwc = rwc
131 _, c.usingTLS = rwc.(*tls.Conn)
132 br := bufio.NewReader(rwc)
133 bw := bufio.NewWriter(rwc)
134 c.buf = bufio.NewReadWriter(br, bw)
135 return c, nil
func HelloServer(w dns.ResponseWriter, req *dns.Msg)
dns.HandleFunc("zonename", HelloServer)