Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there support for glob hosts? #57

Closed
antoyo opened this issue Jun 29, 2020 · 2 comments
Closed

Is there support for glob hosts? #57

antoyo opened this issue Jun 29, 2020 · 2 comments

Comments

@antoyo
Copy link

antoyo commented Jun 29, 2020

Hi.
I want to use this script, but there's many hosts with a predictable format that I want to use this script with, without having to list them all.
Is there a way to specify hosts with a glob, something like: test-*.bigcorp.com?
Thanks.

@dlenski
Copy link
Owner

dlenski commented Jun 29, 2020

Is there a way to specify hosts with a glob, something like: test-*.bigcorp.com?

Not exactly, because DNS itself doesn't support any kind of wildcard search that would allow this.

However, you can use most Unix shells' brace expansion mechanism test-{foo,bar,baz,quux}.bigcorp.com to expand and lookup a finite explicit list of hosts.

@antoyo
Copy link
Author

antoyo commented Jun 29, 2020

I guess that's good enough for my use case.
Thanks.

@antoyo antoyo closed this as completed Jun 29, 2020
Repository owner locked and limited conversation to collaborators Oct 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants