aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2014-09-10 12:53:23 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2014-09-10 12:53:23 +0200
commit0374f02b293801fb495f2732149e2b1cf0f710c4 (patch)
treed477211813b5dabf5ef9aa8400fa955d97f37b1b /README.md
parent03003ea54c357cd365f046ed555eff302495fa77 (diff)
downloadDns-0374f02b293801fb495f2732149e2b1cf0f710c4.zip
Dns-0374f02b293801fb495f2732149e2b1cf0f710c4.tar.gz
Dns-0374f02b293801fb495f2732149e2b1cf0f710c4.tar.bz2
mv Dns.php Resolver.php1.14.09.16
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index b498135..91c058d 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@ Moreover, Hoa aims at being a bridge between industrial and research worlds.
# Hoa\Dns ![state](http://central.hoa-project.net/State/Dns)
-This library allows to resolve domain name according to their types.
+This library allows to create a domain name resolver.
## Quick usage
@@ -46,7 +46,7 @@ Well, now, we will create our resolution server that will listen
file:
```php
-$dns = new Hoa\Dns\Dns(
+$dns = new Hoa\Dns\Resolver(
new Hoa\Socket\Server('udp://127.0.0.1:57005')
);
$dns->on('query', function ( Hoa\Core\Event\Bucket $bucket ) {
@@ -71,17 +71,17 @@ index responds `yeah \o/`, then we start our resolver:
$ php Resolver.php
```
-And we make a HTTP request on `foo.hoa` (that will be resolve to `127.0.0.1`):
+And we make an HTTP request on `foo.hoa` (that will be resolve to `127.0.0.1`):
```sh
$ curl foo.hoa --verbose
-* About to connect() to foo.hoa port 8888 (#0)
+* About to connect() to foo.hoa port 80 (#0)
* Trying 127.0.0.1... connected
-* Connected to foo.hoa (127.0.0.1) port 8888 (#0)
+* Connected to foo.hoa (127.0.0.1) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/a.b.c (…) libcurl/d.e.f
> OpenSSL/g.h.i zlib/j.k.l
-> Host: foo.hoa:8888
+> Host: foo.hoa:80
> Accept: */*
>
< HTTP/1.1 200 OK