# bind-zone-manager

> [![npm version](https://badgen.net/npm/v/bind-zone-manager)](https://www.npmjs.com/package/bind-zone-manager)

Latest version **1.0.0** (published 2019-07-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install bind-zone-manager
pnpm add bind-zone-manager
yarn add bind-zone-manager
bun add bind-zone-manager
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-07-15 |
| First published | 2019-07-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Ahmad Yazdani |
| Maintainers | ahmadyazdanii |
| Keywords | zone, dns, zonefile, bind, bind9 |

## Links

- npm: https://www.npmjs.com/package/bind-zone-manager
- Repository: https://github.com/ahmadyazdanii/bind-zone-manager
- Homepage: https://github.com/ahmadyazdanii/bind-zone-manager#readme
- Issues: https://github.com/ahmadyazdanii/bind-zone-manager/issues
- npm.io page: https://npm.io/package/bind-zone-manager

## Recent versions

- 1.0.0 (latest) — 2019-07-15

## README

# bind-zone-manager

[![npm version](https://badgen.net/npm/v/bind-zone-manager)](https://www.npmjs.com/package/bind-zone-manager)

Nodejs module for Parse and Generate zoneFile of Bind DNS. Manager system

### Installation

Use the [npm](https://www.npmjs.com/) for install 

````js
npm install bind-zone-manager --save
````

### Support
The module developed for [Bind9](https://www.isc.org/bind/) system and support basic zone files options.
### Usage

```javascript
/*
   import module
*/
const ZoneManager = require('bind-zone-manager') 

/* 
   generate new manager without zone File path if you want work
   with zoneFile follow `new ZoneManager(<ZoneFilePath>)` 
*/
const manager = new ZoneManager() 

/*
   Parse raw data, if you used <ZoneFilePath> for generate manager
   You do not need to define {RawData} in Parse function
*/
var parsedData = manager.Parse({RawData}) 

/*
   generate {custom-list} to string and you can write it to zone
   file or anything you want to do with it
*/
var generatedData = manager.Generate({custom-list})

```
##### {RawData}
```
zone "test.com" {
   type master;
   file "record-db-file-path";
};

zone "test2.com" {
   type master;
   file "record-db-file-path";
};
```

##### {custom-list}
```javascript
[
   { 
     Host:"test.com",
     Type:"master",
     DbFilePath:"record-db-file-path"
   },
   { 
     Host:"test2.com",
     Type:"master",
     DbFilePath:"record-db-file-path"
   }
]
```
### Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

### License
[MIT](https://github.com/ahmadyazdanii/bind-zone-manager/blob/master/LICENSE)

---
_Source: https://npm.io/package/bind-zone-manager · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
