Skip to content

Commit

Permalink
Create Basic-Usage.md
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelwilliams authored Feb 3, 2019
1 parent 3a54d78 commit 40f4990
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/Basic-Usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Basic Usage
===========

```php
// JsonResolver created and provided with path to file with json dns records
$jsonResolver = new yswery\DNS\Resolver\JsonResolver(['/path/to/example.com.json', '/path/to/test.com.json']);

// Create a new instance of Server class
$server = new yswery\DNS\Server($jsonResolver);

// Start DNS server
$server->start();
```

0 comments on commit 40f4990

Please sign in to comment.