Commit Graph

156 Commits

Author SHA1 Message Date
Miek Gieben ef524d882a Add features to soa parsing 2012-02-15 09:04:09 +01:00
Miek Gieben 697d67ea96 Fix origin handling and fix lines which start with ownernames
Zonefile handling is more robust and more up to the specs.
Also added a new zone file which has some nice properties
which trigger corner cases.
2012-02-15 08:47:31 +01:00
Miek Gieben b49e4f2411 Allow @ to be recognized as zone origin 2012-02-14 13:23:09 +01:00
Miek Gieben 58a6be3959 Parse RFC3597 RRs (unknown RR handling)
The support is not 100%, an known rr cannot have it's
rdata in unknown form. Consider this a stupid part
of the RFC.
2012-02-13 21:34:06 +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 6279bb1917 Txt record parsing works -- need to look at the on-the-wire stuff 2012-02-12 21:52:20 +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 34a711372a Fix the ORIGIN appending 2012-02-12 12:28:08 +01:00
Miek Gieben 566e344417 Fix NextDomain in NSEC3 - its not a domain-name 2012-02-11 23:03:46 +01:00
Miek Gieben 1f56983ce7 Add test for nsec-like records 2012-02-11 22:59:34 +01:00
Miek Gieben 3697b301c2 Half support for NSEC3 param 2012-02-11 22:47:22 +01:00
Miek Gieben f15274bfdb Add dname 2012-02-11 22:40:49 +01:00
Miek Gieben 7dd412eb99 Add CERT 2012-02-11 22:38:17 +01:00
Miek Gieben 89a45fbc48 Add NAPTR support 2012-02-11 22:32:45 +01:00
Miek Gieben 65c47368a9 gofmt 2012-02-11 17:43:05 +01:00
Miek Gieben 82c178b2f7 Make the error msg nicer 2012-02-11 17:28:36 +01:00
Miek Gieben b437299d77 accidently remote case 2012-02-11 17:15:29 +01:00
Miek Gieben 19cef3f981 Parse SRV and PTR too 2012-02-11 17:03:09 +01:00
Miek Gieben cb4d52c110 Move to the correct place 2012-02-05 11:20:04 +01:00
Miek Gieben ed61734c89 Optimize the RR reading further
remove len(strings) from the code. 16% increase
in speed. Getting about 35K RR/s
2012-01-30 21:26:29 +01:00
Miek Gieben 04b30732ac remove debugging 2012-01-22 14:59:31 +01:00
Miek Gieben abd8d063f4 Update the todo 2012-01-22 12:44:07 +01:00
Miek Gieben add6f10462 support $INCLUDE
ParseZone now needs a filename to report the
correct file
2012-01-21 23:36:54 +01:00
Miek Gieben 9b48d4b899 gofmt 2012-01-12 22:49:26 +01:00
Miek Gieben ecfd5451a9 Remove the Labels() function.
This is now handled inside IsDomainName, which really parses
the name and then (also) returns the number of labels found.
2012-01-08 15:54:33 +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 73012b7dd5 Fix braces and comments, esp for SOA records 2011-12-18 13:42:59 +01:00
Miek Gieben a4ac06b8c3 Fix comments after RRs
zzzzz.miek.nl.  86400   IN      RRSIG   NSEC 8 3 86400 20110823011301
20110724011301 12051 miek.nl.  lyRljEQFOmajcdo6bBI67DsTlQTGU3ag9vlE07u7ynqt9aYBXyE9mkasAK4V0oI32YGb2pOSB6RbbdHwUmSt+cYhOA49tl2t0Qoi3pH21dicJiupdZuyjfqUEqJlQoEhNXGtP/pRvWjNA4pQeOsOAoWq/BDcWCSQB9mh2LvUOH4= ; {keyid = sksak}
zzzzz.miek.nl.  86400   IN      NSEC    miek.nl. TXT RRSIG NSEC

Is now parsed correctly. This is incidently the format as echoed by
ldns.
2011-12-18 13:33:03 +01:00
Miek Gieben 15e1c0961b Make scan_rr much smaller 2011-12-18 11:22:40 +01:00
Miek Gieben 3500e0f4aa Make Lex a private type: lex 2011-12-16 19:34:30 +01:00
Miek Gieben ef7b6f525f gofmt 2011-12-16 14:48:30 +01:00
Miek Gieben 528d323dfa More records added 2011-12-16 11:33:30 +01:00
Miek Gieben 0308dfbc9d Add DS recorsd 2011-12-16 11:30:29 +01:00
Miek Gieben 28bc54e91a Parsing a signed miek.nl works 2011-12-16 11:20:17 +01:00
Miek Gieben c387c41767 Fix SOA parsing 2011-12-16 11:16:26 +01:00
Miek Gieben 4d5f6d66e2 More tweaks for parsing 2011-12-16 10:48:33 +01:00
Miek Gieben a5baf52283 Make DEBUG private: _DEBUG 2011-12-16 10:30:42 +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 7d66f3dbb7 Add parsing for dnskeys 2011-12-15 13:15:31 +01:00
Miek Gieben b73eaf020b Fix incep,expir date representation in rrsigs 2011-12-15 12:41:24 +01:00
Miek Gieben fcc9821edd Remove some debugging stuff 2011-12-15 11:33:28 +01:00
Miek Gieben 5ea0337909 More debugging
RR with CLASS TTL are not parsed correctly (yet)
2011-12-14 16:02:21 +01:00
Miek Gieben 824cb459fb Parsing works 2011-12-14 15:37:36 +01:00
Miek Gieben 7c3a6087a5 Much better error handling 2011-12-14 14:35:45 +01:00
Miek Gieben 7f5ed33fbd New zonefile parsing. Now it compiles 2011-12-14 14:08:17 +01:00
Miek Gieben eda63f2a29 More tweaks 2011-12-14 14:02:55 +01:00
Miek Gieben f78bc74d97 More fixes for parsing 2011-12-14 12:54:08 +01:00
Miek Gieben 5836f0f8f6 More fixes, but doesnt compile yet 2011-12-14 11:56:12 +01:00
Miek Gieben 32a879d970 New parsing works, but a lot of stuff needs to be fixed:
* Parsing the different records
* Parsing private key files (trivial, but needs to be done)
2011-12-14 11:30:29 +01:00