
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
@trellisorg/dns-validator
Advanced tools
Directive that can be attached to a form control (`input` or `textarea`) that will validate the domain entered in using Googles public DNS-over-HTTP (DoH) JSON API.
Directive that can be attached to a form control (input
or textarea
) that will validate the domain entered in using Googles public DNS-over-HTTP (DoH) JSON API.
Useful if you want to validate that the domain entered by a user matches some valid DNS query (like en email has a valid MX record for the entered domain for example).
yarn
yarn add @trellisorg/dns-validator
npm
npm i @trellisorg/dns-validator --save
<input
placeholder="Enter a domain"
dns
type="email"
[query]="{ type: 'mx' }"
#dnsValidator="dns"
/>
<div>{{ dnsValidator.response$ | async | json }}</div>
The response$
observable will contain a Status
property on it that correlates to if the DNS query is valid or not.
More info here:
FAQs
Directive that can be attached to a form control (`input` or `textarea`) that will validate the domain entered in using Googles public DNS-over-HTTP (DoH) JSON API.
The npm package @trellisorg/dns-validator receives a total of 23 weekly downloads. As such, @trellisorg/dns-validator popularity was classified as not popular.
We found that @trellisorg/dns-validator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.