Const
Matches dnsaddr addresses.
Use DNS instead to match any type of DNS address.
import { multiaddr } from '@multiformats/multiaddr'import { DNSADDR } from '@multiformats/multiaddr-matcher'DNSADDR.matches(multiaddr('/dnsaddr/example.org')) // trueDNSADDR.matches(multiaddr('/dnsaddr/example.org/p2p/Qmfoo')) // true Copy
import { multiaddr } from '@multiformats/multiaddr'import { DNSADDR } from '@multiformats/multiaddr-matcher'DNSADDR.matches(multiaddr('/dnsaddr/example.org')) // trueDNSADDR.matches(multiaddr('/dnsaddr/example.org/p2p/Qmfoo')) // true
Matches dnsaddr addresses.
Use DNS instead to match any type of DNS address.