Miek Gieben
9764818db3
Make CountLabel faster
...
We don't need an allocation here, it works ok for non-fqdns and fqdns
2013-09-12 09:11:19 +01:00
Miek Gieben
b663a82eb3
Move deprecated function to the bottom of the file
2013-09-12 09:07:27 +01:00
Miek Gieben
8eb72eea8a
Add .
2013-09-12 09:03:09 +01:00
Miek Gieben
08e7365dc2
Make SplitLabels faster
...
don't allocate a new string at all, it does not matter is the given
string is not fully qualified.
2013-09-12 08:57:37 +01:00
Miek Gieben
b76ac5bde6
Fix the test
2013-09-12 08:14:42 +01:00
Miek Gieben
ee8ace0477
Merge branch 'master' of github.com:miekg/dns
2013-09-11 08:22:23 +01:00
Miek Gieben
32b15d1807
Add more IsDomainName tests
2013-09-11 08:22:20 +01:00
Miek Gieben
9c1ee5d5ca
Update IsDomainName
...
This new functions just compiles the domain to wire format, if that
works, the name is deemed OK. It is also much less strict than the
older code. Almost everything is allowed in the name, except two
dots back to back (there is an explicit test for that).
2013-09-10 18:09:22 +00:00
Miek Gieben
9c72d3aa52
Fix docs
2013-09-10 13:21:55 +00:00
Miek Gieben
47cc5b052d
Work on making IsDomainName better
2013-09-10 13:13:10 +00:00
Miek Gieben
506b3590c9
Update readme
2013-09-09 22:42:24 +01:00
Miek Gieben
a5ac1f46ee
...and fix the imports for the test files
2013-09-09 22:20:48 +01:00
Miek Gieben
81d35ce537
Move some functions to the correct file
...
DNSSEC tests go in dnssec_test.go
2013-09-09 22:19:24 +01:00
Miek Gieben
2b6e9122bd
Use the better name: SingleInflight
2013-09-06 09:49:07 +00:00
Miek Gieben
0adc9a3afe
Update doc and TODO
2013-09-06 09:45:30 +00:00
Miek Gieben
f5aa2e8e29
Merge branch 'master' of github.com:miekg/dns
2013-09-04 20:03:23 +01:00
Miek Gieben
c12e55eb18
Remove the http:// hack
2013-09-03 12:59:29 +00:00
Miek Gieben
cb70138d9e
Remove comment
2013-09-01 21:37:14 +01:00
Miek Gieben
29232adf26
better comment
2013-08-31 20:26:24 +01:00
Miek Gieben
b6a2d1fb5e
Allow empty rdata in records
...
Empty or no rdata is allowed for dynamic updates, so test if this
works for packing/unpacking. It only fails for TSIG (which is
never seen in zone files), SOA (which is not seen like this in dyn.
updates) and WKS (just an old record).
2013-08-31 20:24:52 +01:00
Miek Gieben
f99d511479
if A or AAAA is nil return empty string
...
Now it returns <nil> for nil value, which can not be parsed
back to the record.
2013-08-31 20:07:13 +01:00
Miek Gieben
80f55713f1
comment update
2013-08-30 20:15:05 +01:00
Miek Gieben
401a5e6429
Add unpack test too
2013-08-26 21:24:06 -07:00
Miek Gieben
fdcdc6dbf6
Add test to zero rdata (for dyn updates)
...
This triggerd a bunch of failures, the most important one
is the packing and zero length domain name now works.
2013-08-26 21:11:24 -07:00
Miek Gieben
cb9ec711f5
Add (failing) test for zero rdata
2013-08-25 21:38:10 -07:00
Miek Gieben
744f895b6f
Better name
2013-08-25 21:25:02 -07:00
Miek Gieben
06ae93df87
update the readme a bit
2013-08-25 21:22:11 -07:00
Miek Gieben
e7e29d1c90
Updates
2013-08-24 07:21:37 -07:00
Miek Gieben
bb71be0271
Implement outstanding query detection.
...
Copied from the standard library and adapted to Go DNS.
2013-08-24 02:28:58 +00:00
Miek Gieben
d117fda34b
Perform query inflight deduplication
...
Taking a queue from Go tip, I copied over the new code and tweaked
it a bit for use in Go DNS.
2013-08-23 22:56:34 +00:00
Miek Gieben
5a15fb1e8f
Adapt singleinflight a little to fit my needs better
2013-08-23 22:53:30 +00:00
Miek Gieben
6ef2debe4e
Add copy for an entire message, private for now
2013-08-23 22:53:05 +00:00
Miek Gieben
6c8dd0a445
Merge branch 'master' of github.com:miekg/dns
2013-08-23 20:30:17 +00:00
Miek Gieben
3457c0428d
Some work in outstanding query de-deplication
2013-08-23 20:29:52 +00:00
Miek Gieben
db41985b91
copy the optimization from go tip into here
2013-08-23 18:41:35 +00:00
Miek Gieben
2980ecf999
typo in comment
...
# Last 5 commit messages
# ----------------------
# 10ad5a4
Merge branch 'master' of github.com:miekg/dns [Miek Gieben]
# ac0703b
Handle MixCase queries again. [Miek Gieben]
# dbef97a
Add MixCase query test [Miek Gieben]
# 7ef3106
Add panics to make older Go versions happy [Miek Gieben]
# 980f5e9
Merge pull request #51 from r4um/master [Miek Gieben]
2013-08-21 21:52:39 +00:00
Miek Gieben
52731e78c5
Clean up the nsecx file
...
Stuff never worked. Remove it for now
2013-08-16 22:20:09 -07:00
Miek Gieben
68716ada83
Unused
2013-08-16 22:18:21 -07:00
Miek Gieben
953fc47468
Merge pull request #53 from kenshinx/master
...
new user of dns library in go
2013-08-02 02:21:02 -07:00
kenshin
6997a526ca
a new user of dns library in go
2013-07-27 00:50:20 +08:00
Miek Gieben
10ad5a45e2
Merge branch 'master' of github.com:miekg/dns
2013-07-25 09:30:42 +00:00
Miek Gieben
ac0703bbe6
Handle MixCase queries again.
...
Thanks Ask for reporting.
2013-07-25 08:32:10 +01:00
Miek Gieben
dbef97abad
Add MixCase query test
...
As reported by Ask, these aren't correctly handled :(
2013-07-25 07:55:59 +01:00
Miek Gieben
7ef3106262
Add panics to make older Go versions happy
2013-07-12 14:27:16 +00:00
Miek Gieben
980f5e9d63
Merge pull request #51 from r4um/master
...
Do not fail AXFR if first anwser is just SOA
2013-07-11 02:49:30 -07:00
Pranay Kanwar
467e5fce1b
Do not fail AXFR if first anwser is just SOA
2013-07-11 12:12:32 +05:30
Miek Gieben
91a457e0d8
Merge pull request #50 from fcambus/master
...
Adding some projects to the list of library users
2013-07-04 11:13:18 -07:00
Frederic Cambus
a62e4d4cba
Adding some projects to the list of library users
2013-07-04 19:09:37 +02:00
Miek Gieben
09d7d3e79d
Some TODO updates
2013-06-29 09:50:43 +01:00
Miek Gieben
555318a03a
Merge branch 'compress'
2013-06-29 09:49:12 +01:00