/third_party/node/test/parallel/ |
D | test-dns.js | 27 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 …]
|
D | test-dns-set-default-order.js | 19 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 …]
|
D | test-tls-connect-hints-option.js | 11 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);
|
D | test-dns-lookup.js | 12 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 …]
|
D | test-c-ares.js | 26 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) => {
|
D | test-dns-setservers-type-check.js | 5 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);
|
D | test-dgram-custom-lookup.js | 5 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;
|
D | test-dns-channel-timeout.js | 5 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 });
|
D | test-dns-resolvens-typeerror.js | 30 const dns = require('dns'); constant 31 const dnsPromises = dns.promises; 42 () => dns.resolveNs([]), // bad name 50 () => dns.resolveNs(''), // bad callback
|
D | test-dns-setserver-when-querying.js | 6 const dns = require('dns'); constant 14 const resolver = new dns.Resolver(); 24 dns.resolve('localhost', common.mustCall()); 27 dns.setServers(localhost);
|
D | test-dns-default-verbatim-false.js | 18 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', {}));
|
D | test-dns-default-verbatim-true.js | 18 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', {}));
|
D | test-dns-resolveany-bad-ancount.js | 4 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/ |
D | async-dns.c | 46 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 …]
|
D | private-lib-async-dns.h | 68 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/ |
D | dns.md | 7 <!-- 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/ |
D | test-dns.js | 29 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 …]
|
D | test-dns-ipv4.js | 5 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 …]
|
D | test-dns-ipv6.js | 8 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 …]
|
D | test-dns-idna2008.js | 13 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);
|
D | test-dns-setserver-in-callback-of-resolve4.js | 9 const dns = require('dns'); constant 11 dns.resolve4( 14 dns.setServers([ addresses.DNS4_SERVER ]); 18 dns.resolve4(addresses.INET4_HOST, common.mustCall());
|
D | test-dns-any.js | 6 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/ |
D | README.md | 1 # 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/ |
D | CMakeLists.txt | 1 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/ |
D | 00_Descriptions.txt | 1 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
|