1
0
mirror of https://github.com/danog/dns.git synced 2024-11-30 04:29:06 +01:00

Allow custom domain in custom config example

This commit is contained in:
Niklas Keller 2019-12-12 20:09:10 +01:00
parent 9d7e57f37d
commit b52c8fd255

View File

@ -22,8 +22,8 @@ $customConfigLoader = new class implements Dns\ConfigLoader {
Dns\resolver(new Dns\Rfc1035StubResolver(null, $customConfigLoader));
Loop::run(function () {
$hostname = "amphp.org";
Loop::run(function () use ($argv) {
$hostname = $argv[1] ?? "amphp.org";
try {
pretty_print_records($hostname, yield Dns\resolve($hostname));