Miek Gieben
74181dee8e
More tests
2012-01-22 20:44:52 +01:00
Miek Gieben
2718f6f23a
Adapt test for new ParseZone api
2012-01-21 23:39:48 +01:00
Miek Gieben
9b48d4b899
gofmt
2012-01-12 22:49:26 +01:00
Miek Gieben
a3949750be
Somewhat nicer
2012-01-12 11:17:01 +01:00
Miek Gieben
374e495534
More evil records to parse
2012-01-12 10:50:01 +01:00
Miek Gieben
6d95911558
Dont allow the question section to be compressed
2012-01-11 16:16:09 +01:00
Miek Gieben
bbd8c42de6
Fix the tests
2012-01-11 14:17:09 +01:00
Miek Gieben
8e1dd132a4
extra testcase
2012-01-08 21:37:37 +01:00
Miek Gieben
b417c42bc2
Fix handling of dnames
...
Add support for escaped dots. Only thing to fix is the
fqdn-ness of user defined names.
2012-01-08 14:53:55 +01:00
Miek Gieben
0322d3a9da
Fix $ORIGIN in zonefiles
...
also check if a dname isn't fq, and add $ORIGIN is not.
2012-01-08 14:06:58 +01:00
Miek Gieben
362e606bf2
Make ParseZone more go like
2011-12-19 19:20:55 +01:00
Miek Gieben
e2b080d1b1
New time api
2011-12-18 21:01:32 +01:00
Miek Gieben
689bf97ed4
Send the last bits also
2011-12-18 18:15:09 +01:00
Miek Gieben
925d38c689
More parse tests
2011-12-18 13:56:27 +01:00
Miek Gieben
73012b7dd5
Fix braces and comments, esp for SOA records
2011-12-18 13:42:59 +01:00
Miek Gieben
15e1c0961b
Make scan_rr much smaller
2011-12-18 11:22:40 +01:00
Miek Gieben
e69e60c05a
Evil record gets parsed correctly
2011-12-17 13:59:38 +01:00
Miek Gieben
487e600562
Fix parsing when RR ends in a brace
...
* Testcase added
2011-12-17 11:28:54 +01:00
Miek Gieben
fc963a6a5a
Add extra tests, esp braces when parsing
2011-12-17 10:16:24 +01:00
Miek Gieben
a4836a77a4
Make the test fail
2011-12-16 19:43:13 +01:00
Miek Gieben
512d1dae46
Fix the reading of private key files
2011-12-16 17:32:15 +01:00
Miek Gieben
a9e3ec9880
Dont include large files in the repo
2011-12-16 14:48:20 +01:00
Miek Gieben
c4f46f9937
Fix the parsetesting and do some performace tests
2011-12-16 14:38:52 +01:00
Miek Gieben
235dee6a0d
Fix the parse tests once more
2011-12-16 10:26:32 +01:00
Miek Gieben
06ae052c32
Implement returning errors from the scanner
2011-12-16 10:06:28 +01:00
Miek Gieben
c6deba77e0
Fix the key parsing
2011-12-15 22:44:09 +01:00
Miek Gieben
35a1e137e2
More parsing fixes
2011-12-15 22:40:07 +01:00
Miek Gieben
f4329cce16
More parsing tweaks
2011-12-15 18:03:41 +01:00
Miek Gieben
9168608abd
More parsing fixes
2011-12-15 17:49:43 +01:00
Miek Gieben
081166db5e
Fix the tests (Again) + NewRR(str)
...
Parse tests start to get working again
NewRR reads a string and is the easiest way to get an RR
in your code.
2011-12-15 17:37:07 +01:00
Miek Gieben
131f6962d1
gofmt
2011-12-09 21:45:57 +01:00
Miek Gieben
05eb569938
Test and fix dynamic updates
...
* Update to the new Go version
* Fix lot of things that need fixes
Need a why to communicate half RRs (i.e. A record without rdata)
2011-12-09 21:12:03 +01:00
Taral
c1889c778d
gofmt (excluding _examples)
2011-11-27 21:03:21 -08:00
Miek Gieben
406edadf20
Make the tests compile again
2011-09-10 21:22:42 +02:00
Miek Gieben
7ef1892814
Tests fails, but dont crash
2011-08-08 10:33:50 +02:00
Miek Gieben
05b7ac53dd
Create qnamelist for nsec/nsec3 handling
2011-07-30 23:05:34 +02:00
Miek Gieben
e016536cdc
Add nsec(3) support in the core zone structure
2011-07-29 22:06:09 +02:00
Miek Gieben
be10e40045
Fix Pop()
...
Need to check which of the rrs, rrsigs of nxt is actually filled
with the data and pop that.
2011-07-29 13:16:27 +02:00
Miek Gieben
33fbece4ca
Add txt and fixup ds, ta and dlv
2011-07-29 12:18:20 +02:00
Miek Gieben
caa1502c1e
Add much more complex zone structure
...
A zone is stored in a
map[string]map[int]*ZRRset
where string is the qname and int (in the second map) is
qclass * <large number> + qtype, thereby making it unique.
ZRRset holds:
RRs RRset
RRsigs RRset
Nsec RR
Nsec3 RR
Glue bool
Which holds the RRset for the zone contents. This is grouped
together for DNSSEC purposes, but also helps in non-DNSSEC zones.
(There is of course a increase in memory usage).
2011-07-28 22:47:55 +02:00
Miek Gieben
b2a6356596
Fix opt pseudo section stuff
2011-07-25 11:24:26 +02:00
Miek Gieben
96ddebf335
add miek.nl.signed as a test zone
...
Add support for more RRs - I can now parse my own zone
2011-07-24 22:21:48 +02:00
Miek Gieben
00f8254ae1
Fix parsing of RRSIGs
2011-07-24 21:29:16 +02:00
Miek Gieben
c52f05f9f5
More error checking
2011-07-24 17:32:41 +02:00
Miek Gieben
4671072027
Error handling
...
Handle semantic errors in the input stream.
Try to use Ragel's error handling when seeing a non-supported
class. This does not work yet.
2011-07-24 17:08:33 +02:00
Miek Gieben
da0603089a
gofmt -w
2011-07-23 23:43:43 +02:00
Miek Gieben
0dcfa0b427
Kill SetString
...
Create a NewRR that creates a new RR from a string.
FIx the tests to relfect this
2011-07-23 22:26:50 +02:00
Miek Gieben
a1a0034733
More Go like
...
Make a Parser type and define methods on that.
* Zone() parse and return entire zone
* RR() parse and return 1 RR
* PrivateKey parse a private key file
2011-07-22 23:51:30 +02:00
Miek Gieben
2a8d7f9694
Make the API more Go like
2011-07-22 23:28:04 +02:00
Miek Gieben
4f6b1f7ee2
Correct the count
2011-07-22 22:07:45 +02:00