Home
last modified time | relevance | path

Searched refs:dns (Results 1 – 25 of 158) sorted by relevance

1234567

/third_party/node/test/parallel/
Dtest-dns.js27 const dns = require('dns'); constant
28 const dnsPromises = dns.promises;
31 const existing = dns.getServers();
40 dns.setServers(servers);
42 assert.deepStrictEqual(dns.getServers(), ['127.0.0.1', '0.0.0.0']);
60 dns.setServers(servers);
61 assert.deepStrictEqual(dns.getServers(), [
83 dns.setServers([serv]);
97 dns.setServers(goog);
98 assert.deepStrictEqual(dns.getServers(), goog);
[all …]
Dtest-dns-set-default-order.js19 const dns = require('dns'); constant
20 const dnsPromises = dns.promises;
32 assert.throws(() => dns.setDefaultResultOrder('my_order'), {
35 assert.throws(() => dns.promises.setDefaultResultOrder('my_order'), {
38 assert.throws(() => dns.setDefaultResultOrder(4), {
41 assert.throws(() => dns.promises.setDefaultResultOrder(4), {
54 dns.setDefaultResultOrder('verbatim');
55 await allowFailed(promisify(dns.lookup)('example.org'));
59 await allowFailed(promisify(dns.lookup)('example.org', {}));
64 dns.setDefaultResultOrder('ipv4first');
[all …]
Dtest-tls-connect-hints-option.js11 const dns = require('dns'); constant
16 assert.notStrictEqual(hints, dns.ADDRCONFIG);
17 assert.notStrictEqual(hints, dns.V4MAPPED);
18 assert.notStrictEqual(hints, dns.ALL);
19 assert.notStrictEqual(hints, dns.ADDRCONFIG | dns.V4MAPPED);
20 assert.notStrictEqual(hints, dns.ADDRCONFIG | dns.ALL);
21 assert.notStrictEqual(hints, dns.V4MAPPED | dns.ALL);
22 assert.notStrictEqual(hints, dns.ADDRCONFIG | dns.V4MAPPED | dns.ALL);
Dtest-dns-lookup.js12 const dns = require('dns'); constant
13 const dnsPromises = dns.promises;
22 assert.throws(() => dns.lookup(1, {}), err);
40 dns.lookup(false, 'cb');
47 dns.lookup(false, 'options', 'cb');
67 dns.lookup(false, options, common.mustNotCall());
86 dns.lookup(false, options, common.mustNotCall());
115 dns.lookup(false, {
124 dns.lookup('127.0.0.1', {
136 dns.lookup('127.0.0.1', {
[all …]
Dtest-c-ares.js26 const dns = require('dns'); constant
27 const dnsPromises = dns.promises;
46 dns.lookup(null, common.mustSucceed((result, addressType) => {
51 dns.lookup('127.0.0.1', common.mustSucceed((result, addressType) => {
56 dns.lookup('::1', common.mustSucceed((result, addressType) => {
74 () => dns.resolve('www.google.com', val),
86 dns.reverse('127.0.0.1', common.mustSucceed((domains) => {
Dtest-dns-setservers-type-check.js5 const dns = require('dns'); constant
6 const resolver = new dns.promises.Resolver();
7 const dnsPromises = dns.promises;
8 const promiseResolver = new dns.promises.Resolver();
28 dns.setServers(val);
68 dns.setServers(val);
Dtest-dgram-custom-lookup.js5 const dns = require('dns'); constant
10 dns.lookup(host, family, callback);
22 const originalLookup = dns.lookup;
24 dns.lookup = common.mustCall((host, family, callback) => {
25 dns.lookup = originalLookup;
Dtest-dns-channel-timeout.js5 const dns = require('dns'); constant
7 for (const ctor of [dns.Resolver, dns.promises.Resolver]) {
28 const resolver = new dns.Resolver({ timeout });
43 const resolver = new dns.promises.Resolver({ timeout });
Dtest-dns-resolvens-typeerror.js30 const dns = require('dns'); constant
31 const dnsPromises = dns.promises;
42 () => dns.resolveNs([]), // bad name
50 () => dns.resolveNs(''), // bad callback
Dtest-dns-setserver-when-querying.js6 const dns = require('dns'); constant
14 const resolver = new dns.Resolver();
24 dns.resolve('localhost', common.mustCall());
27 dns.setServers(localhost);
Dtest-dns-default-verbatim-false.js18 const dns = require('dns'); constant
19 const dnsPromises = dns.promises;
40 await allowFailed(promisify(dns.lookup)('example.org'));
46 await allowFailed(promisify(dns.lookup)('example.org', {}));
Dtest-dns-default-verbatim-true.js18 const dns = require('dns'); constant
19 const dnsPromises = dns.promises;
40 await allowFailed(promisify(dns.lookup)('example.org'));
46 await allowFailed(promisify(dns.lookup)('example.org', {}));
Dtest-dns-resolveany-bad-ancount.js4 const dns = require('dns'); constant
7 const dnsPromises = dns.promises;
28 dns.setServers([`127.0.0.1:${address.port}`]);
38 dns.resolveAny('example.org', common.mustCall((err) => {
/third_party/libwebsockets/lib/system/async-dns/
Dasync-dns.c46 lws_adns_get_query(lws_async_dns_t *dns, adns_query_type_t qtype, in lws_adns_get_query() argument
63 if (owner == &dns->cached) { in lws_adns_get_query()
66 lws_dll2_add_head(&q->list, &dns->cached); in lws_adns_get_query()
114 lwsl_wsi_debug(q->dns ? q->dns->wsi : NULL, "q: %p, c: %p, refcount %d -> %d", in lws_async_dns_complete()
123 lws_adns_dump(q->dns); in lws_async_dns_complete()
133 lwsl_wsi_info(q->dns ? q->dns->wsi : NULL, "in"); in lws_async_dns_sul_cb_retry()
134 lws_adns_dump(q->dns); in lws_async_dns_sul_cb_retry()
136 if (q->dns && q->dns->wsi) { in lws_async_dns_sul_cb_retry()
138 lws_callback_on_writable(q->dns->wsi); in lws_async_dns_sul_cb_retry()
289 struct lws_async_dns *dns = &(lws_get_context(wsi)->async_dns); in callback_async_dns() local
[all …]
Dprivate-lib-async-dns.h68 lws_async_dns_t *dns; member
122 lws_adns_get_cache(lws_async_dns_t *dns, const char *name);
125 lws_adns_parse_udp(lws_async_dns_t *dns, const uint8_t *pkt, size_t len);
128 lws_adns_get_query(lws_async_dns_t *dns, adns_query_type_t qtype,
132 lws_async_dns_trim_cache(lws_async_dns_t *dns);
140 lws_adns_dump(lws_async_dns_t *dns);
/third_party/node/doc/api/
Ddns.md7 <!-- source_link=lib/dns.js -->
9 The `dns` module enables name resolution. For example, use it to look up IP
13 DNS protocol for lookups. [`dns.lookup()`][] uses the operating system
16 system do, use [`dns.lookup()`][].
19 const dns = require('dns');
21 dns.lookup('example.org', (err, address, family) => {
27 All other functions in the `dns` module connect to an actual DNS server to
30 [`dns.lookup()`][] (e.g. `/etc/hosts`). Use these functions to always perform
34 const dns = require('dns');
36 dns.resolve4('archive.org', (err, addresses) => {
[all …]
/third_party/node/test/internet/
Dtest-dns.js29 const dns = require('dns'); constant
34 const dnsPromises = dns.promises;
81 dns.reverse('bogus ip', common.mustNotCall());
103 const req = dns.resolve4(addresses.INET4_HOST, {
131 const req = dns.resolve6(addresses.INET6_HOST, {
156 const req = dns.resolveMx(addresses.MX_HOST, function(err, result) {
172 const req = dns.resolveMx(addresses.NOT_FOUND, function(err, result) {
196 const req = dns.resolveNs(addresses.NS_HOST, function(err, names) {
212 const req = dns.resolveNs(addresses.NOT_FOUND, function(err, result) {
240 const req = dns.resolveSrv(addresses.SRV_HOST, function(err, result) {
[all …]
Dtest-dns-ipv4.js5 const dns = require('dns'); constant
10 const dnsPromises = dns.promises;
51 const req = dns.resolve4(
73 const req = dns.reverse(
91 const req = dns.lookup(
109 const req = dns.lookup(
127 const req = dns.lookup(addresses.INET4_HOST, {
144 hints: dns.ADDRCONFIG
147 const req = dns.lookup(addresses.INET4_HOST, {
148 hints: dns.ADDRCONFIG
[all …]
Dtest-dns-ipv6.js8 const dns = require('dns'); constant
10 const dnsPromises = dns.promises;
53 const req = dns.resolve6(
74 const req = dns.reverse(
92 const req = dns.lookup(
124 const req = dns.lookup(addresses.INET6_HOST, {
135 const req = dns.lookup(addresses.INET6_HOST, {
137 hints: dns.V4MAPPED
170 const req = dns.lookup(
197 const req = dns.lookup(
[all …]
Dtest-dns-idna2008.js13 const dns = require('dns'); constant
25 dns.setServers([fixture.dnsServer]);
27 dns.lookup(
40 dns.promises.lookup(fixture.hostname, { family: fixture.family })
51 dns.resolve4(fixture.hostname, mustCall((err, addresses) => {
60 const p = new dns.promises.Resolver().resolve4(fixture.hostname);
Dtest-dns-setserver-in-callback-of-resolve4.js9 const dns = require('dns'); constant
11 dns.resolve4(
14 dns.setServers([ addresses.DNS4_SERVER ]);
18 dns.resolve4(addresses.INET4_HOST, common.mustCall());
Dtest-dns-any.js6 const dns = require('dns'); constant
12 const dnsPromises = dns.promises;
16 dns.setServers([ '8.8.8.8', '8.8.4.4' ]);
127 const req = dns.resolve(
146 const req = dns.resolve(
165 const req = dns.resolve(
/third_party/node/test/fixtures/0-dns/
DREADME.md1 # 0-dns
4 The test cert file for use `test/parallel/test-tls-0-dns-altname.js`
10 $ openssl genrsa -out 0-dns-key.pem 2048
15 $ openssl rsa -in 0-dns-key.pem -RSAPublicKey_out -outform der -out 0-dns-rsapub.der
18 0-dns@1.0.0 /home/github/node/test/fixtures/0-dns
26 $ openssl x509 -text -in 0-dns-cert.pem
/third_party/libwebsockets/minimal-examples/api-tests/api-test-async-dns/
DCMakeLists.txt1 project(lws-api-test-async-dns C)
5 set(SAMP lws-api-test-async-dns)
14 add_test(NAME api-test-async-dns COMMAND lws-api-test-async-dns)
15 set_tests_properties(api-test-async-dns
17 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/minimal-examples/api-tests/api-test-async-dns
/third_party/ltp/testcases/network/stress/dns/
D00_Descriptions.txt1 dns-stress01
2 Verify the dns server or the kernel is not down after handling
5 dns-stress02
6 Verify the dns server or the kernel is not down after handling

1234567