33 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| # dnsly
 | |
| smart dns methods written in TypeScript
 | |
| 
 | |
| ## Availabililty
 | |
| [](https://www.npmjs.com/package/dnsly)
 | |
| [](https://gitlab.com/pushrocks/dnsly)
 | |
| [](https://github.com/pushrocks/dnsly)
 | |
| [](https://pushrocks.gitlab.io/dnsly/)
 | |
| 
 | |
| ## Status for master
 | |
| [](https://gitlab.com/pushrocks/dnsly/commits/master)
 | |
| [](https://gitlab.com/pushrocks/dnsly/commits/master)
 | |
| [](https://david-dm.org/pushrocks/dnsly)
 | |
| [](https://www.bithound.io/github/pushrocks/dnsly/master/dependencies/npm)
 | |
| [](https://www.bithound.io/github/pushrocks/dnsly)
 | |
| [](https://nodejs.org/dist/latest-v6.x/docs/api/)
 | |
| [](https://nodejs.org/dist/latest-v6.x/docs/api/)
 | |
| [](http://standardjs.com/)
 | |
| 
 | |
| ## Usage
 | |
| we recommend the use of TypeScript for optimal intellisense
 | |
| ```javascript
 | |
| import * as dnsly from 'dnsly'
 | |
| 
 | |
| let myDnsly = new dnsly.Dnsly('google') // uses Google DNS Servers e.g 8.8.8.8
 | |
| myDnsly.getRecord('example.com','AAAA') // returns promise
 | |
|     .then(record => { // AAAA record for google.com
 | |
|         // do something 
 | |
|     })
 | |
| ```
 | |
| 
 | |
| [](https://push.rocks)
 |