1
|
# dns-equal
|
2
|
|
3
|
Compare DNS record strings for equality. Enforces [RFC
|
4
|
1035](https://tools.ietf.org/html/rfc1035) domain comparison.
|
5
|
|
6
|
[![Build status](https://travis-ci.org/watson/dns-equal.svg?branch=master)](https://travis-ci.org/watson/dns-equal)
|
7
|
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)
|
8
|
|
9
|
## Installation
|
10
|
|
11
|
```
|
12
|
npm install dns-equal --save
|
13
|
```
|
14
|
|
15
|
## Usage
|
16
|
|
17
|
```js
|
18
|
var dnsEqual = require('dns-equal')
|
19
|
|
20
|
var domain1 = 'Example.COM'
|
21
|
var domain2 = 'example.com'
|
22
|
|
23
|
if (dnsEqual(domain1, domain2)) {
|
24
|
console.log('The two domains are the same')
|
25
|
}
|
26
|
```
|
27
|
|
28
|
## License
|
29
|
|
30
|
MIT
|