Commit Graph

264 Commits

Author SHA1 Message Date
Miek Gieben b54eaa6e9a fixed 2011-03-02 11:21:37 +01:00
Miek Gieben 97c847ab1c make it a real simple nameserver 2011-03-01 15:40:50 +01:00
Miek Gieben 7c85603f8f slightly more docs 2011-03-01 15:17:55 +01:00
Miek Gieben 7014ede8bb Add -short option that does not display the long key and sig data 2011-03-01 14:57:21 +01:00
Miek Gieben 8f79ea64fe add ns 2011-03-01 13:13:31 +01:00
Miek Gieben e9b74bf87a remove this DUH 2011-03-01 13:11:56 +01:00
Miek Gieben 971bfb7a08 remove debugging 2011-02-28 11:56:59 +01:00
Miek Gieben e6dc03baeb Shuffle the dns constant to dns.go 2011-02-28 10:42:03 +01:00
Miek Gieben 9bc0ca4618 Fix AXFR and IXFR
Defined a new type Xfr which holds all the info for AXFR and
IXFR. Works well. Xfr.Add tells to add or remove (in case of AXFR
alwasy true). And further more holds the RR
2011-02-26 17:39:18 +01:00
Miek Gieben 22336b7287 Ixfr works, but im receiving nil messages 2011-02-26 11:41:25 +01:00
Miek Gieben 157062f6b0 Ixfr works, but needs to be refined 2011-02-25 23:29:08 +01:00
Miek Gieben 22f34ec885 More stuff for IXFR 2011-02-25 22:44:13 +01:00
Miek Gieben fef5d323bb Implementing IXFR 2011-02-25 21:17:17 +01:00
Miek Gieben c1297a4f9c Fixes for axfr,ixfr 2011-02-25 20:23:33 +01:00
Miek Gieben 2b5a97570a Made a start with ixfr 2011-02-24 21:44:55 +01:00
Miek Gieben 77348913dd Update the documentation 2011-02-24 16:13:23 +01:00
Miek Gieben 79a3a78657 Add unknown types 2011-02-23 15:25:11 +01:00
Miek Gieben 4992b3e6bf Small IPv6 fixes 2011-02-21 17:57:50 +01:00
Miek Gieben c6ec1f1ce7 add unknowns to q 2011-02-21 16:00:30 +01:00
Miek Gieben 8229af080d Fix funkensturm 2011-02-11 21:46:35 +01:00
Miek Gieben b43067fbcc Update the Makefile 2011-02-11 21:31:20 +01:00
Miek Gieben ec76147884 remove this one 2011-02-11 21:30:36 +01:00
Miek Gieben ea49f7cca9 fix this server 2011-02-11 21:29:40 +01:00
Miek Gieben 58ccfe317b smaller api 2011-02-11 20:54:54 +01:00
Miek Gieben 6ad68826eb also add error channel 2011-02-10 22:26:11 +01:00
Miek Gieben 1c287dcc36 remove from makefile 2011-02-10 12:54:10 +01:00
Miek Gieben 8b1d640082 Remove this 2011-02-10 12:53:56 +01:00
Miek Gieben 75d28c4399 helper function: less code needed 2011-02-10 12:53:39 +01:00
Miek Gieben 61925e2002 Bring funkensturm up to date for the new api 2011-02-10 12:26:26 +01:00
Miek Gieben 90562fddfb tweaks 2011-02-10 09:01:43 +01:00
Miek Gieben 3f8ac4cce4 removed 2011-02-09 22:10:55 +01:00
Miek Gieben 7794ab9a5c fix the mx code too 2011-02-09 22:10:35 +01:00
Miek Gieben 5c548a6e93 Fix a bunch of examples 2011-02-09 21:42:09 +01:00
Miek Gieben 7c76690ad3 It works 2011-02-09 18:14:51 +01:00
Miek Gieben 63c18cdb2e A better model
But now the routine seem to hang after 1 try
2011-02-09 18:06:37 +01:00
Miek Gieben f6d6e1524a Fix q 2011-02-08 20:22:43 +01:00
Miek Gieben d0e343e35e Fix axfr 2011-02-08 20:18:47 +01:00
Miek Gieben 9fc9f325b8 Folded resolver back into main package 2011-02-08 20:15:54 +01:00
Miek Gieben 1e111c9571 Make it work with the new Go release 2011-02-02 09:05:25 +01:00
Miek Gieben c68989e9e0 all configs now support broadcasting 2011-01-27 22:50:22 +01:00
Miek Gieben 20d27dc598 add broadcast funkensturm config 2011-01-27 22:45:36 +01:00
Miek Gieben 01fd71c2d1 let reflect print incoming packets 2011-01-27 22:09:24 +01:00
Miek Gieben 1e8c2d3679 to prevent deadlock a seperate err channel needs to be used 2011-01-27 22:01:25 +01:00
Miek Gieben 4f343a4d60 dont wait for the return signal
this can easily lead to dead lock
2011-01-27 21:11:00 +01:00
Miek Gieben 47f5d71a0b Fix the responder error messaging 2011-01-27 20:22:41 +01:00
Miek Gieben 896df96f94 Responder channel is now os.Error
to make it possible to send errors back
2011-01-27 20:16:58 +01:00
Miek Gieben 44c00e1b57 error messaging works OK 2011-01-27 20:05:17 +01:00
Miek Gieben 841d815c88 fixing handing responder when you start one twice 2011-01-27 19:49:36 +01:00
Miek Gieben 998835acf3 Fix the Makefiles 2011-01-27 14:23:26 +01:00
Miek Gieben 17e35aed72 make examples better 2011-01-27 09:40:18 +01:00
Miek Gieben 3e25a31db6 major configuration update 2011-01-25 12:54:33 +01:00
Miek Gieben db6b13c411 fix doc 2011-01-25 12:46:10 +01:00
Miek Gieben 756be15ce5 disable compression again 2011-01-25 12:32:18 +01:00
Miek Gieben 9d6d5ff3f7 play with pkt compression 2011-01-25 12:31:47 +01:00
Miek Gieben 64080d4c37 documentation updates 2011-01-24 22:35:36 +01:00
Miek Gieben 10fa55b047 make it slightly easier to compile funkensturm 2011-01-24 12:31:30 +01:00
Miek Gieben 986a0d7b78 Cleanups and allow for multple resovers -- needs testing 2011-01-24 11:01:42 +01:00
Miek Gieben 3cd7c55ee8 only sign for www.example.org 2011-01-24 09:56:25 +01:00
Miek Gieben 6f90b9d4d6 tweaks 2011-01-23 19:38:27 +01:00
Miek Gieben 6df62a99cb dont error on nil pkts 2011-01-23 19:32:38 +01:00
Miek Gieben 6ccd86a048 add the newline 2011-01-23 19:31:04 +01:00
Miek Gieben 4e2ede52b5 change comments slightly 2011-01-23 19:17:12 +01:00
Miek Gieben 35ae8f9c12 copy the default over 2011-01-23 18:11:47 +01:00
Miek Gieben 05a23e25e1 nicer verbose output 2011-01-23 18:06:42 +01:00
Miek Gieben c44591ab85 configure plain proxy by default 2011-01-23 17:55:35 +01:00
Miek Gieben c96b7f978b use fmt 2011-01-23 17:55:01 +01:00
Miek Gieben 656a0c5663 bunch of cleanups 2011-01-23 16:21:56 +01:00
Miek Gieben e05cc84207 Slightly better, cleanup must still be done 2011-01-22 19:41:30 +01:00
Miek Gieben 5ba0733e31 Delaying pkt is working 2011-01-22 17:17:09 +01:00
Miek Gieben 52c9c3f15e Add on-the-fly signing
it works, documentation coming
2011-01-22 16:10:18 +01:00
Miek Gieben 6a75e08368 small cleanups 2011-01-22 11:23:58 +01:00
Miek Gieben 035dc7c1d0 Fully transparant proxy in a few lines of Go 2011-01-22 11:21:11 +01:00
Miek Gieben 285c450fa8 More funkensturm stuff 2011-01-21 22:26:28 +01:00
Miek Gieben ba42adbfcc cleanup 2011-01-21 13:02:34 +01:00
Miek Gieben 05c75c348b Add funkenstorm
Added funkenstorm, only does stripping of additional section

Fix encoding of ipv4 addresses that are put in a  16 byte buffer (AAAA).
Just assume the last four bytes are ipv4 in that case
2011-01-21 12:55:35 +01:00
Miek Gieben 131b3f388b play it little with it 2011-01-20 16:32:03 +01:00
Miek Gieben cf3611347b Start of a complete nameserver 2011-01-19 10:51:17 +01:00
Miek Gieben a93456ae33 set GOMAXPROCS to an insane value 2011-01-19 10:40:26 +01:00
Miek Gieben da922ebc4c More robust and actually close the TCPListener 2011-01-18 21:34:22 +01:00
Miek Gieben 5786959b98 Test Nameserver Inside responder pkg 2011-01-18 21:01:08 +01:00
Miek Gieben 04f2bf449a Dont answer responses even in test code 2011-01-18 19:54:58 +01:00
Miek Gieben 0d36c44a8e add signal handling to the examples 2011-01-18 19:43:59 +01:00
Miek Gieben bc25b1a162 Use short nil form 2011-01-18 15:51:24 +01:00
Miek Gieben ec441e36e1 Add Meta data to the resolver 2011-01-18 15:44:30 +01:00
Miek Gieben 5715b7b67e addd 2011-01-17 16:11:11 +01:00
Miek Gieben d91b5b1804 weg 2011-01-17 16:10:57 +01:00
Miek Gieben df95422771 dont belong in git 2011-01-17 15:53:33 +01:00
Miek Gieben 9a87cb59da add rude reponder too 2011-01-17 15:52:32 +01:00
Miek Gieben e57dc24115 A simple responder nameserver 2011-01-17 15:43:54 +01:00
Miek Gieben c729cdd971 Add nsid to q 2011-01-17 10:51:33 +01:00
Miek Gieben 2bcd7bf74f Dnssectest is removed 2011-01-17 10:40:08 +01:00
Miek Gieben a7977d6665 Use the new parsing from /etc/resolv.conf
Fixup all the examples programs
2011-01-17 10:38:25 +01:00
Miek Gieben fea310bbcf New API
rename resolver.DnsMsg to resolver.Msg. shorter and better
Adapt all files to this change
2011-01-13 16:12:02 +01:00
Miek Gieben 586337bf57 Remove zlutser 2011-01-11 20:24:20 +01:00
Miek Gieben fc8e6345af Fix examples and add notify prog
Show how simple a dns-notify becomes.
2011-01-08 13:46:51 +01:00
Miek Gieben b57613e8d8 Fix the examples so that they work with a nonresponding nameserver
Added some error checking
2011-01-03 12:30:19 +01:00
Miek Gieben 659fc455ba better error handling 2011-01-03 12:18:17 +01:00
Miek Gieben 97506dafe4 Fix the error handling
Added new type (copied from net package) dns.Error that carries
all errors
2011-01-03 11:29:04 +01:00
Miek Gieben b052387f0d Can go 2011-01-02 20:08:48 +01:00
Miek Gieben df4dde5ad5 Add a zlutser program
validate an rrsig without checking the chain of trust
2011-01-02 20:07:45 +01:00
Miek Gieben 84dfab0d7f more more more 2011-01-01 22:07:47 +01:00
Miek Gieben 0d1c52216b remove exe 2011-01-01 22:06:56 +01:00
Miek Gieben 9976029ca6 Add install script for installation
Fix the examples for the new api
2011-01-01 22:03:41 +01:00
Miek Gieben 439c64abc6 add axfr to the list of example progs 2011-01-01 19:33:01 +01:00
Miek Gieben 9b595ed836 Add axfr example prog 2011-01-01 19:10:07 +01:00
Miek Gieben 0dcdbe4361 Fix DNS over TCP
Actually send the 2 bytes length and also be prepared
to receive them.
2010-12-31 14:11:52 +01:00
Miek Gieben c71d8e1495 First stab for strconv
This will later be extended to be a real parser.
Applied assorted tweaks
2010-12-30 20:00:26 +01:00
Miek Gieben 6730efb0f5 finish q.go 2010-12-30 18:56:12 +01:00
Miek Gieben 1b362f5bd2 Copy from dig flags to q
q is a sample query app for Go dns
2010-12-30 18:48:29 +01:00
Miek Gieben acdab89120 Completely fix EDNS0 2010-12-30 18:42:40 +01:00
Miek Gieben ec2e732ad3 Better handle error in pack/unpacking 2010-12-30 17:15:59 +01:00
Miek Gieben 28f4189630 Add 'q' a dig-like program (only 100 lines of code) 2010-12-30 16:44:32 +01:00
Miek Gieben 9d1d7444a3 Some fixes from creating a dig-like program 2010-12-30 16:38:16 +01:00
Miek Gieben bcf320aad4 rename the examples dir
Make it *not* show up in godoc
2010-12-30 14:13:28 +01:00