-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45e307f
commit 4cc1419
Showing
1 changed file
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,40 @@ | ||
# zonemng | ||
Microsoft DNS Management Package | ||
zonemng | ||
------- | ||
You can manage Microsoft DNS Services Zones with this .NET package. Currently just reads Zones and Zone records. | ||
|
||
Install | ||
----- | ||
* Download Assembly from | ||
* Reference assembly file to projects | ||
|
||
Requirements | ||
------------ | ||
* .NET Framework 4+ | ||
|
||
Usage | ||
----- | ||
|
||
```csharp | ||
namespace usage | ||
{ | ||
using MaestroPanel.MsDnsZoneManager; | ||
|
||
class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
var dns = new ZoneManage(); | ||
|
||
foreach (var item in dns.GetAllZones()) | ||
{ | ||
System.Console.WriteLine(item.Name); | ||
|
||
foreach (var r in item.Records) | ||
{ | ||
System.Console.WriteLine("\t{0}\t{1}\t{2}\t{3}", r.RecordType, r.Name, r.Data, r.Priority); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
``` |