Commit Graph

163 Commits

Author SHA1 Message Date
Miek Gieben 9705bb8077 gofmt 2012-12-09 20:18:11 +01:00
Miek Gieben f56b237012 Fix zonesigning branch 2012-12-09 20:16:46 +01:00
Miek Gieben 940b786161 Merge conflict resolution 2012-12-09 20:15:31 +01:00
Miek Gieben 7fb499889a Type rename 2012-12-09 20:11:56 +01:00
Miek Gieben 235e892dfc Rename the RR types drop the RR_ prefix
This is also done in the official Go library. It also make the
code shorter.
2012-12-09 19:23:25 +01:00
Miek Gieben 3609f3e7a5 gofmt -s 2012-12-09 19:07:31 +01:00
Miek Gieben 747004a724 Call it ModTime 2012-12-07 11:20:07 +01:00
Miek Gieben 9d337f7bb7 Merge branch 'zonesigning' of github.com:miekg/dns into zonesigning 2012-12-07 10:01:59 +01:00
Miek Gieben 3e29cce3ba Check the NSEC type bitmap once
It's still timeconsuming, but the only way to check the
type bitmap is to iterate over the slice...
2012-12-07 09:16:43 +01:00
Miek Gieben 885aba5fad Add mtime to the zone structure 2012-12-06 15:38:23 +01:00
Miek Gieben ecb630cb9b remove println 2012-12-05 16:25:11 +01:00
Miek Gieben 3049265c22 Change ZoneData.Sign to take string as first argument
There is no need to put the ZoneData structure in there.
2012-12-05 16:10:40 +01:00
Miek Gieben cebeb8474d Dont use this type at all 2012-12-05 16:07:09 +01:00
Miek Gieben 9df1f9fb62 Documentation tweaks 2012-12-05 16:03:51 +01:00
Miek Gieben c2ab7033c4 Be more carefull when adding to the NSEC type list 2012-12-05 15:51:42 +01:00
Miek Gieben 5d369a1909 Fix resigning 2012-12-05 10:57:14 +01:00
Miek Gieben 44cf4a1abc Revert some changes and fix zone (re)-signing
Signing works, but should be test. It only adds NSEC records
at the moment. NSEC3 is on the todo.
2012-12-05 10:35:46 +01:00
Miek Gieben 4bac50e3e4 Revert "Make zone.Signatures a map of a map"
This reverts commit f4f936e2e8.
2012-12-05 09:27:50 +01:00
Miek Gieben 6359438615 Revert "boe"
This reverts commit 8c66338b8b.
2012-12-05 09:27:42 +01:00
Miek Gieben 8c66338b8b boe 2012-12-04 20:27:04 +01:00
Miek Gieben f4f936e2e8 Make zone.Signatures a map of a map 2012-12-04 20:21:58 +01:00
Miek Gieben 526fbf27c9 Make it compile 2012-12-04 19:53:16 +01:00
Miek Gieben 858f602a15 Getting there 2012-12-04 16:11:54 +01:00
Miek Gieben 74cf502baf doc. updates 2012-12-02 20:32:44 +01:00
Miek Gieben 01d40f1a63 Its NextDo() 2012-11-09 10:45:11 +01:00
Miek Gieben 93ff832d5d use anonymous structs for the mutexes 2012-10-18 08:29:12 +02:00
Miek Gieben 31f2d2d545 docs 2012-10-17 14:00:41 +02:00
Miek Gieben c6e75de70e add Apex function, to access a zonesapex 2012-10-17 13:56:11 +02:00
Miek Gieben ea947838d8 Do the TCP write in one write
Before the tcp writes were done like NSD does them:
2 bytes length, and the rest of the message.

Now a complete buffer is created with LLMMM...MMM, where
LL is the 2 byte length and MMM...MMM is the message to be send.
This makes the reply faster at the cost of doing a realloc of the
message buffer.
2012-10-17 12:40:57 +02:00
Miek Gieben 9ca924a069 Rename dynamic update functions (again)
* Use simple names and add zone Remove function for dynamic update use.
* Locking 'n stuff is all taken care off
* TSIG is working and the duplicate code is removed.
* readClient and writeClient are renamed read and write, because that is
  what they do.
2012-10-16 10:41:20 +02:00
Miek Gieben 3089111fa4 calculate tsig in the normal query path too 2012-10-16 08:50:53 +02:00
Miek Gieben 89cb935efe Rename *all* dynamic update function
Be more consistent with the rest of the function names. I also
started on implementinf the dynamic update function to the zone
implementation. Those names will also be in sync.
2012-10-15 16:50:39 +02:00
Miek Gieben 9ca30e3c7d docs 2012-10-15 16:12:29 +02:00
Miek Gieben 57b0c21d09 docs 2012-10-15 13:53:32 +02:00
Miek Gieben 9441562d33 Make isSubDomain a faster function for zone 2012-10-15 13:34:29 +02:00
Miek Gieben 6d968caf7c Fix zone.Remove 2012-10-15 09:31:14 +02:00
Miek Gieben b8b471c012 Remove isnt working, some fixes and tests 2012-10-15 09:07:31 +02:00
Miek Gieben 7305ca2b58 Finish remove, also need test for signatures 2012-10-15 08:56:40 +02:00
Miek Gieben 9ab211d660 small tweaks 2012-10-12 14:03:56 +02:00
Miek Gieben 82cfe822ff Make toRadixName much faster
fix bug when a escape is escaped: \\. This last dot is now a real
domain label seperator dot.
2012-10-10 12:39:45 +02:00
Miek Gieben 36af583ccf make toRadixName much faster
This function is in the hotpath for query answering, so make it
as fast as possible
2012-10-10 10:56:09 +02:00
Miek Gieben 10a349423c Fix tests and tsig in the process 2012-10-09 22:45:19 +02:00
Miek Gieben 2f107bc731 attempt for resigning and a few other tweaks 2012-09-26 15:50:51 +02:00
Miek Gieben a624f09a4c allow for CSK signing, by making it an option configSignature 2012-09-26 15:29:39 +02:00
Miek Gieben 10c0672a99 add uint32ToTime 2012-09-17 20:10:09 +02:00
Miek Gieben 90740a6447 Add opposite function 2012-09-17 20:01:33 +02:00
Miek Gieben a8ab2145e0 Check the SEP bit in a key (KSK/ZSK split) 2012-09-17 18:05:46 +02:00
Miek Gieben 23852ba311 Check the SEP bit in a key (KSK/ZSK split) 2012-09-17 17:48:35 +02:00
Miek Gieben 1b4dde9c76 Revert, thanks to Zhao Xiaohong 2012-09-17 09:18:48 +02:00
Miek Gieben c4bf438e31 more more routines 2012-09-16 18:46:40 +02:00