aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2014-09-28 21:11:15 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2014-09-28 21:11:15 +0200
commitc8ecf00b89a144c0fb0f1af3bfc8d10bfe5df46e (patch)
tree8c169c3a9ab7d11270dfd746af40da4fab3b8127
parent9842c9766166b79cf1532ec35961dc117b0494f3 (diff)
downloadDns-c8ecf00b89a144c0fb0f1af3bfc8d10bfe5df46e.zip
Dns-c8ecf00b89a144c0fb0f1af3bfc8d10bfe5df46e.tar.gz
Dns-c8ecf00b89a144c0fb0f1af3bfc8d10bfe5df46e.tar.bz2
mv `hoa dns:server` `hoa dns:resolve`.
See 0374f02.
-rw-r--r--Bin/Resolve.php (renamed from Bin/Server.php)6
-rw-r--r--Documentation/En/Index.xyl2
-rw-r--r--Documentation/Fr/Index.xyl2
3 files changed, 5 insertions, 5 deletions
diff --git a/Bin/Server.php b/Bin/Resolve.php
index e1d8d69..c0a752c 100644
--- a/Bin/Server.php
+++ b/Bin/Resolve.php
@@ -42,7 +42,7 @@ use Hoa\Dns;
use Hoa\Socket;
/**
- * Class Hoa\Dns\Bin\Server.
+ * Class Hoa\Dns\Bin\Resolve.
*
* Quick DNS server.
*
@@ -51,12 +51,12 @@ use Hoa\Socket;
* @license New BSD License
*/
-class Server extends Console\Dispatcher\Kit {
+class Resolve extends Console\Dispatcher\Kit {
/**
* Options description.
*
- * @var \Hoa\Dns\Bin\Server array
+ * @var \Hoa\Dns\Bin\Resolve array
*/
protected $options = [
['listen', Console\GetOption::REQUIRED_ARGUMENT, 'l'],
diff --git a/Documentation/En/Index.xyl b/Documentation/En/Index.xyl
index 0b988f6..8c494af 100644
--- a/Documentation/En/Index.xyl
+++ b/Documentation/En/Index.xyl
@@ -200,7 +200,7 @@ yeah \o/
server and to redirect some domains to IP addresses. The matching is based on
regular expressions (please, see <a href="http://pcre.org/">PCRE</a>).
Thus:</p>
- <pre><code class="language-shell">$ hoa dns:server 'foo.*' to 1.2.3.4 '.*\.bar\..*' to 5.6.7.8
+ <pre><code class="language-shell">$ hoa dns:resolve 'foo.*' to 1.2.3.4 '.*\.bar\..*' to 5.6.7.8
Server is up, on udp://127.0.0.1:57005!
▋</code></pre>
diff --git a/Documentation/Fr/Index.xyl b/Documentation/Fr/Index.xyl
index d9c42ef..76fbdc0 100644
--- a/Documentation/Fr/Index.xyl
+++ b/Documentation/Fr/Index.xyl
@@ -220,7 +220,7 @@ yeah \o/
serveur de résolution et de rediriger certains domaines vers des IP. Le
filtrage se fait à l'aide d'expressions régulières (voir les
<a href="http://pcre.org/">PCRE</a>). Ainsi :</p>
- <pre><code class="language-shell">$ hoa dns:server 'foo.*' to 1.2.3.4 '.*\.bar\..*' to 5.6.7.8
+ <pre><code class="language-shell">$ hoa dns:resolve 'foo.*' to 1.2.3.4 '.*\.bar\..*' to 5.6.7.8
Server is up, on udp://127.0.0.1:57005!
▋</code></pre>