Julien Gilli
0381cf5698
tests: fix internet/test-dns.js
internet/test-dns.js assumes that ::1 always resolves to "localhost" on
all platforms. This is not what happens in reality. Some platforms
resolve it to "ip6-localhost" too. There doesn't seem to be any consensus
on what's the right thing to do. However, most sane platforms will use
either one of these two values.
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
11 years ago
Saúl Ibarra Corretgé
35b9580cd8
dns: introduce lookupService function
Uses getnameinfo to resolve an address an port into a hostname and
service.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
11 years ago
Timothy J Fontaine
7b72e15665
test: update test-dns.js after a60a9b0
resolveTxt now returns a 2-d array for all the chunks string chunks
relating to the record
11 years ago
Fedor Indutny
045f765a1a
test: add `reuseAddr` in dgram-multicast...
Add `reuseAddr` option in `test-dgram-multicast-multi-process.js`
11 years ago
Timothy J Fontaine
98a0909da0
test: internet/test-dns disable implicit ipv6
This ends up being too difficult to test across different deployments
11 years ago
Timothy J Fontaine
265fdc8e91
test: internet/test-dns handle ESERVFAIL
ESERVFAIL is also an acceptable error code when failing to resolve a
domain.
11 years ago
Timothy J Fontaine
6cc95b06ea
test: refactor to use common testcfg
11 years ago
Tuğrul Topuz
bddea032b7
dns: add resolveSoa and 'SOA' rrtype
You can now query for SOA records by either passing 'SOA' to `resolve`
or by using the new `resolveSoa`
11 years ago
Fedor Indutny
5977cba985
tls: reuse hostname from underlying net.Socket
When `tls.connect()` is called with `socket` option, it should try to
reuse hostname previously passed to `net.connect()` and only after that
fall back to `'localhost'`.
fix #6409
11 years ago
Ben Noordhuis
a2d1cbef6b
dns: set hostname property on error object
Make debugging and logging easier: when a DNS lookup for a hostname
fails, set the hostname as a property on the error object.
Fixes #5393 .
11 years ago
Ben Noordhuis
4ffa943c3f
test: fix up internet/test-dns after api change
* The test calls an internal API that changed in commit ca9eb71
.
* Trying to reverse-lookup a bogus hostname now returns EINVAL rather
than the (bogus!) status code ENOTIMP.
12 years ago
Koichi Kobayashi
72ad2c94df
https: fix default port
https.get('https://github.com/ ') should use port 443, not 80.
12 years ago
Ben Noordhuis
14f45ba739
test: move two tests from simple/ to internet/
Fixes #5876 .
12 years ago
Pavel Lang
2ad98725d6
DNS: Support NAPTR queries
They were previously removed in a90bc78534
.
12 years ago
isaacs
1b870b6127
test: Move test-net-connect-timeout to test/internet
It is not a valid test unless you're connected to the internet, and causes
a lot of spurious failures on Linux anyway, as it's highly dependent on
timing of things that we don't have any control over.
12 years ago
Ben Noordhuis
a39f669bc7
test: move simple/test-http-dns-fail to test/internet
The test times out when the upstream DNS resolver takes too long to
respond.
See #4672 .
12 years ago
Dan Milon
7295bb9435
dns: make error message match errno
12 years ago
Bert Belder
b5db5fc9dc
test: pick another CNAME record to test dns queries
Google.com no longer has a CNAME record.
12 years ago
isaacs
a90bc78534
Revert "DNS: Support NAPTR queries"
This reverts commit 91bf18fcc5
.
13 years ago
ssuda
91bf18fcc5
DNS: Support NAPTR queries
Adding support for NAPTR records
fixes #3170
13 years ago
Ben Noordhuis
7f4aba91d3
test: include common.js in all tests
13 years ago
Andreas Madsen
4865063924
Tests: fix jslint issues
13 years ago
Ryan Dahl
be2320d408
Add binding to uv_getaddrinfo
13 years ago
Ryan Dahl
9631e29933
Remove tests relying on !process.features.uv
13 years ago
Colton Baker
87286cc737
Fixed a lot of jslint errors.
Fixes #1831
13 years ago
Ben Noordhuis
976c6b0826
test: add TXT DNS record lookup test
13 years ago
Ben Noordhuis
aa0308d618
process: add process.features, remove process.useUV
Partially fixes #1385 .
14 years ago
Bert Belder
72e18d7f19
dns_uv: match the old api better, fix tests
14 years ago
Ryan Dahl
e8542b6220
Fix internet testcase config
14 years ago
Bert Belder
1e29fe65c3
Fix `make test-internet`
14 years ago
Bert Belder
858f23094e
Bindings for libuv-integrated c-ares
14 years ago
Ryan Dahl
97255c2651
Fix test harness for Linux
Mostly just upgraded tools/test.py to the latest one that's in V8. But also
fixing the before and after hooks to preserve the test/tmp directory so that
running tests manually usually works.
14 years ago
arlolra
04fac19822
Split tests.
15 years ago