Commit Graph

135 Commits

Author SHA1 Message Date
Miek Gieben 47cc5b052d Work on making IsDomainName better 2013-09-10 13:13:10 +00:00
Miek Gieben 3bba2c99c6 Kill the use of strings.ToUpper
This creates garbage and does not really help the parsing.
2013-05-15 19:43:10 +02:00
Miek Gieben 81941d4422 Update all copyright notices 2013-05-12 16:15:52 +02:00
Miek Gieben 709d11aa2c update documentation 2013-05-06 22:23:13 +02:00
Miek Gieben d53d9eab81 gofmt 2013-05-05 20:30:44 +02:00
Miek Gieben b323d0276a Docs 2013-03-05 13:56:59 +01:00
Miek Gieben 3ba1bf974e better doc 2013-03-04 17:21:34 +01:00
Miek Gieben ef9b83d3bd Docs 2013-03-04 15:01:49 +01:00
Miek Gieben 7b7eaaa4b0 Make (some) commments normative in zonefiles 2013-03-04 12:16:20 +01:00
Miek Gieben 525465db6d Add parse test and further tweaks 2013-03-04 11:24:08 +01:00
Miek Gieben 88c149cdb4 remove line 2013-03-04 10:05:47 +01:00
Miek Gieben ff062b8157 Parse comments in the lexer 2013-03-04 09:58:09 +01:00
Miek Gieben a5e9f8010d Use the new debbugging 2013-03-04 09:42:24 +01:00
Miek Gieben c413442565 add sane debugging 2013-03-04 09:40:45 +01:00
Miek Gieben 464a7bacf4 For ommited ttls fall back to $TTL or 3600
As per RFC 2308
2012-12-13 15:11:22 +01:00
Miek Gieben 623de14ebb Add missing checks if $ORIGIN's name is valid
Call IsDomainName() as $ORIGIN is rel. infrequent this does
not impact the parsing speed.
2012-12-13 10:14:22 +01:00
Miek Gieben d594c79d19 A optional new origin can be used after $INCLUDE
Add code to check for a new origin.
2012-12-13 10:08:35 +01:00
Miek Gieben 2a3b818b95 Use much more descriptive names for the maps
Alg_str -> AlgorithmToString
 Rr_str  -> TypeToString

And for the reverse maps also.
2012-12-02 09:29:54 +01:00
Miek Gieben a014286039 Some updates in the comments/documentation 2012-12-02 08:31:56 +01:00
Miek Gieben 6e605f578e Make the line count error reporting more sane 2012-11-22 13:41:40 +01:00
Miek Gieben fa55001b4c Add tests and fix bug in the parser
torc wasn't set in some part resulting in parsing a 'A' while
in fact the parsed record type should have been returned.
2012-11-22 11:54:46 +01:00
Miek Gieben 5a3db7b240 delayed newline counting
Fix a lot of corning cases for correct newline counting, but not
the ones where the closing brace is solely on a newline.
2012-11-21 22:21:40 +01:00
Miek Gieben c15d4fe3a3 Ugly hack to get line count correct
When the parser has read a \n to error messsage is off-by-one.
This fixes that.
2012-11-21 17:19:16 +01:00
Miek Gieben 314a0eebcc Add support for L32, NID, L64 and LP records 2012-11-18 10:29:05 +01:00
Miek Gieben 20a1a740c5 Check for @ begin used as origin in rdata 2012-11-09 10:34:51 +01:00
Miek Gieben 2999e6a509 Add check origin function 2012-11-08 23:10:31 +01:00
Miek Gieben 6f7aad15d8 documenation 2012-08-21 17:36:58 +02:00
Miek Gieben b720003623 make api smaller 2012-08-17 08:31:38 +02:00
Miek Gieben 7adc5ab95b make origin an fqdn 2012-07-16 19:46:16 +02:00
Miek Gieben 24bc5b8041 Actually use strings.HasPrefix correctly 2012-07-11 11:09:52 +02:00
Miek Gieben 722460f52d documentation 2012-07-06 20:44:41 +02:00
Miek Gieben a3fb69689b use buffered channels, as per Robs suggestion 2012-07-03 20:06:02 +02:00
Miek Gieben 26a6d3f833 small tweaks 2012-05-20 20:46:25 +02:00
Miek Gieben ba99579516 documentation 2012-05-20 17:39:06 +02:00
Miek Gieben 9c67491aee cleanup and extra test 2012-05-20 15:31:35 +02:00
Miek Gieben 7a3af5b729 Support $GENERATE (the bind extension).
It is even better than the bind one, because all records are
supported (as long as the output is valid)
2012-05-20 15:28:27 +02:00
Miek Gieben 95c1154930 documentation 2012-05-08 14:17:17 +02:00
Miek Gieben 52d391e251 Add more documentation 2012-05-03 09:05:30 +02:00
Miek Gieben 7562c68094 documentation updates 2012-05-03 08:53:38 +02:00
Miek Gieben 79ea0f8e31 Fix LOC parsing 2012-05-01 22:21:44 +02:00
Miek Gieben d85d8f9fe9 Start adding LOC tests 2012-04-30 21:42:58 +02:00
Miek Gieben b50e3f690e First chunk in parsing LOC RRs 2012-04-30 16:54:02 +02:00
Miek Gieben 0940f549bf Skeleton function for parsing LOC records 2012-04-30 16:01:07 +02:00
Miek Gieben 7f78754c1d Some tweaks about errors 2012-04-18 14:06:10 +02:00
Miek Gieben 49f41fb17b Install example right away 2012-03-04 10:41:16 +01:00
Miek Gieben df6d86e937 Fix for when not seeing an RR at all 2012-03-03 17:40:30 +01:00
Miek Gieben c7d38a11f1 Prefix with dns: here too 2012-02-29 21:15:58 +01:00
Miek Gieben aed704524c Make the parsing even faster 100K RR/s 2012-02-27 21:12:04 +01:00
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 3b089b94fc slightly faster parsing 2012-02-23 20:13:37 +01:00