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:
parent
9d7e57f37d
commit
b52c8fd255
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user