Commit Graph

111 Commits

Author SHA1 Message Date
Miek Gieben
0c0b97f72b Parsing fix for lines starting with class or TTL
name.   IN SOA  a6.nstld.com. hostmaster.nic.name ....
              IN 7200   NS      j6.nstld.com.
              7200 IN     NS      k6.nstld.com.

Wasn't handled properly
2012-02-27 18:48:53 +01:00
Miek Gieben
89c05b4f74 gofmt 2012-02-23 19:37:08 +01:00
Miek Gieben
69cecf63bd Newline in text record 2012-02-23 19:15:06 +01:00
Miek Gieben
9c5c2ee96f Fix very large SOA/TTL values 2012-02-19 18:36:59 +01:00
Miek Gieben
71a776ddb5 Fix HIP and add ExampleHIP test function 2012-02-19 12:28:31 +01:00
Miek Gieben
88a0052d1d Fix newline/space handling and braces
( dsjkdjk
djsdjk
)

( dkjsdjsd
  djskdjsd
)

Are two different strings, the above contains NO spaces, the bottom
one does. This doesn't matter anywhere, except in HIP record, which
say some data may not contain spaces.
2012-02-19 12:04:27 +01:00
Miek Gieben
32ce3502ae add HIP here too 2012-02-19 11:27:16 +01:00
Miek Gieben
bc6eca4ec4 Put this in a example test function 2012-02-17 20:37:19 +01:00
Miek Gieben
542ca8ed6d Add ref to 4592 and tests it 2012-02-15 10:28:55 +01:00
Miek Gieben
d89f439689 Extra parse tests 2012-02-15 10:02:21 +01:00
Miek Gieben
ef524d882a Add features to soa parsing 2012-02-15 09:04:09 +01:00
Miek Gieben
63d8b1feb1 Implement TTLs in words
1H, 1M, 1W2D, etc. should now be parsed in TTLs
2012-02-14 15:14:54 +01:00
Miek Gieben
7ef88cf5b3 Add support for @
For this to work ParseZone was extended to accept a starting
origin. This way even zonefiles without $ORIGIN would work
as expected. This is an api change.
2012-02-14 13:46:40 +01:00
Miek Gieben
3bb902e549 Add more testing 2012-02-13 21:39:27 +01:00
Miek Gieben
37ef7bd219 More TXT related fixes
Add two corner cases for testing
2012-02-13 19:08:37 +01:00
Miek Gieben
2f64868d3c Add quotes to the parsing engine.
Support:
TXT
NAPTR

And other record that we may use.
2012-02-13 13:19:37 +01:00
Miek Gieben
42efa912b5 Almost there with parsing 2012-02-12 23:00:26 +01:00
Miek Gieben
a7b2a88e7a Parsing TXT records now works OK 2012-02-12 22:24:18 +01:00
Miek Gieben
6ddb9ab88b Txt record parsing works -- need to look at the on-the-wire stuff 2012-02-12 21:50:02 +01:00
Miek Gieben
5a48b54327 added quotes as important chars in the parser 2012-02-12 19:06:32 +01:00
Miek Gieben
9c478ab6e4 Add the dot in the correct place 2012-02-12 12:36:26 +01:00
Miek Gieben
a21f7c6b30 Documentation updates and parsing fixes 2012-02-12 11:45:44 +01:00
Miek Gieben
d7f4f61777 Clean up dead code 2012-02-12 11:16:26 +01:00
Miek Gieben
1f56983ce7 Add test for nsec-like records 2012-02-11 22:59:34 +01:00
Miek Gieben
19cef3f981 Parse SRV and PTR too 2012-02-11 17:03:09 +01:00
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