Commit Graph

2532 Commits

Author SHA1 Message Date
Miek Gieben d017b24161 parsing known records as unknown ones, does not work 2013-06-07 08:14:14 +01:00
Miek Gieben 88c466c949 Add Copyright to the new file 2013-06-06 19:37:22 +01:00
Miek Gieben 3b95788578 Merge pull request #42 from yalp/FixTxtLen
Fix length computation for TXT and a testcase.
2013-06-06 11:36:11 -07:00
Marc Capdevielle 7c80a7202f Add tests for TXT record serialization 2013-06-06 14:02:57 +02:00
Marc Capdevielle 795a69a6ec Fix length computation for TXT 2013-06-06 14:02:43 +02:00
Miek Gieben e8e8e84200 remove println 2013-06-05 22:33:15 +01:00
Miek Gieben 6f0ce553cf Acutally use the CERT parsing
Also fix some bugs in the errors it sends back
2013-06-05 22:28:13 +01:00
Miek Gieben fd17416ab0 Fix parsing MINFO 2013-06-05 22:20:36 +01:00
Miek Gieben b33fb29f34 Actually add the MINFO parsing 2013-06-05 22:16:55 +01:00
Miek Gieben f6c697f52b Fix IsDomainName
Make \.. legal (as it should be) and don't allocate a new var byte c
and every loop.
2013-06-05 22:06:02 +01:00
Miek Gieben 637fed84a4 Remove tests for zone 2013-06-05 20:41:53 +01:00
Miek Gieben 8b1cbd40ce Remove zone.go
The needs for in memory zone data are complex and different for
almost everybody. Adding a memory efficient, fast, generic and
simple data structure to go dns is therefore off the table.
2013-06-05 20:37:37 +01:00
Miek Gieben 15d8cdc5f9 Fix: the *dns.TXT instead of *TXT 2013-06-04 11:37:11 +02:00
Miek Gieben 285a216328 small doc updates 2013-05-16 00:15:36 +01: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 c26f99da53 Merge branch 'master' of github.com:miekg/dns 2013-05-15 11:20:24 +02:00
Miek Gieben 970dcb3875 Create a contrib section 2013-05-15 11:18:37 +02:00
Miek Gieben d1909a2bdf Make Security an uint16
Because TypeNone and NSEC and NSEC3 are rr types they also uint16s
2013-05-15 08:37:32 +01:00
Miek Gieben c62399262f Update Sign and Sign3 documentation 2013-05-14 22:12:07 +01:00
Miek Gieben 6a6367fa91 Check and set Security=TypeNSEC
When signing with Sign() only a unsecured or a TypeNSEC zone can be
signed. An NSEC3 type zone must be signed with Sign3()
2013-05-14 22:00:11 +01:00
Miek Gieben b4bec99970 update todo 2013-05-13 21:28:27 +01:00
Miek Gieben bd9e0f3d49 Merge branch 'master' of github.com:miekg/dns 2013-05-13 20:25:26 +01:00
Miek Gieben 72f4cd81d8 Rename these internal values
_UDP and _TCP are ugly, just lowercase them.
2013-05-13 12:02:29 +02:00
Miek Gieben 6d46e39bc7 Merge branch 'master' of github.com:miekg/dns 2013-05-13 11:52:25 +02:00
Miek Gieben 38d7d592fb update TODO 2013-05-13 11:52:08 +02:00
Miek Gieben 26d5a3260e We are using embedding 2013-05-13 07:26:08 +01:00
Miek Gieben af286fb157 update todo 2013-05-12 21:09:32 +01:00
Miek Gieben c66494c6c5 Resolv merge conflicts 2013-05-12 19:08:37 +02:00
Miek Gieben 81941d4422 Update all copyright notices 2013-05-12 16:15:52 +02:00
Miek Gieben b4ec8ac33e Fix copyright 2013-05-12 16:11:13 +02:00
Miek Gieben f595bf7a06 Set license on test files 2013-05-12 16:09:52 +02:00
Miek Gieben 98b677a97c Update the copy right for the original GO files 2013-05-12 16:07:06 +02:00
Miek Gieben 5537ac771d Recheck the server mux match logic
And a test to make sure it all works. The root zone can still
be configured as a last resort (wildcard) match.
2013-05-12 15:56:12 +02:00
Miek Gieben b326ffeae9 We start at 5 for the algorithm understood 2013-05-12 09:59:40 +02:00
Miek Gieben 4660849452 update 2013-05-11 21:04:13 +02:00
Miek Gieben 320d981509 Add Algo-signal-draft impl. for EDNS0 2013-05-11 21:02:17 +02:00
Miek Gieben ce95cddec1 and fix this typo too 2013-05-11 18:14:49 +02:00
Miek Gieben 6f23a2e9f6 Merge pull request #40 from abh/q-fixes
Make `q` work better if resolv.conf is missing
2013-05-11 09:11:17 -07:00
Miek Gieben 9768128f7b Further search and replace fixes 6->5 2013-05-11 18:10:31 +02:00
Miek Gieben 48c65d7119 Search and replace gone wrong 2013-05-11 18:07:03 +02:00
Miek Gieben 1f7cc5e03f Use correct number 2013-05-11 18:04:55 +02:00
Ask Bjørn Hansen e4a33cd494 Work without resolv.conf if the nameserver is specified with @... 2013-05-11 01:22:20 -07:00
Ask Bjørn Hansen e7e56ada07 Don't try to close the client config file if opening fails
$ q
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x9c124]

goroutine 1 [running]:
os.(*File).Close(0x0, 0xf800000010, 0x0, 0xf840054e40)
/usr/local/go/src/pkg/os/file_unix.go:99 +0x1c
github.com/miekg/dns.ClientConfigFromFile(0x1c3294, 0x6374652f00000010, 0x0, 0xf840054e40, 0xf840054de0, ...)
/Users/ask/go/src/github.com/miekg/dns/clientconfig.go:30 +0xcc
main.main()
/Users/ask/go/src/github.com/miekg/dns/ex/q/q.go:50 +0x45b
2013-05-11 01:22:20 -07:00
Miek Gieben 0363410587 NotifyFunc is a bit too much 2013-05-10 17:51:18 +02:00
Miek Gieben 48a8ce58cd documentation 2013-05-10 15:40:56 +02:00
Miek Gieben 99878f2cdf documentation 2013-05-10 15:36:32 +02:00
Miek Gieben bb6de9dc2c better doc for the notifyfunc 2013-05-09 10:41:41 +02:00
Miek Gieben e47e7192c7 Update docs for NotifyFunc 2013-05-09 10:35:03 +02:00
Miek Gieben d18bb64db1 Add notification function on zone changed 2013-05-09 09:52:16 +02:00
Miek Gieben a5a709cd2a Rename securityConfig to sortedNames 2013-05-09 09:30:38 +02:00