Download the PHP package polidog/quick-dns without Composer

On this page you can find all versions of the php package polidog/quick-dns. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package quick-dns

PHPでDNSの正引きをするためのライブラリ!!!

Host書き直すのだるいし、ローカル内で共有したい時なんかに使えます。 ※絶対にLAN内で使用するようにしてください。。。 ネットワークに不具合が起きても責任もてないし・・・使用する時は自己責任でお願いします。

ライセンス

MIT License

動作環境

php5.3以上 みなさん、php5.5使いましょうヽ(`・ω・´)ノ ウワァァン!

インストール

  1. composerをget

  2. composer.jsonを用意する

  3. composer installする

動かし方

examplesディレクトリの中を見てもらえれば解りますが、基本的には以下のような流れになります。

  1. オートローダーを設定する てかcomposer installとかすれば多分勝手にautoloder作られるよ!
  2. サーバーインスタンス生成する
  3. setStorageConfigのなかでkeyがdataの入れ鵜tにドメインとipを設定する ドメイン名をキー、valueをIPを指定する ※FQDNじゃなくてドメイン名ね!

あとはlistenメソッドを実行するだけ!!! 引数でポート指定できるよー!!

4.実際に実行してみる

cd examples sudo php example1.php ※管理者権限が必要です。

この状態だと、UDP:10053ポートで起動しているので、普通に以下のようにdigをうつ

dig @localhost -p 10053 www.polidog.jp
[info]question domain:www.polidog.jp
[info]query type:A
[info]ip address:133.242.145.155

こんどはdns設定してないドメインの名前解決をする

dig @localhost -p 10053 www.yahoo.co.jp
[info]question domain:www.yahoo.co.jp
[info]query type:A
[info]call lookupExternal

lookupExternalと言われているので、これで外に問い合わせに行ってると思います。


All versions of quick-dns with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package polidog/quick-dns contains the following files

Loading the files please wait ....