From: Alexander Grigoriev <ang@overta.ru>
To: Saratov Linux User Group Maillist <sarlug@lists.lug.ru>
Subject: Re: [Sarlug] Check host presence in DNS, DHCP
Date: Wed, 17 Apr 2013 13:09:43 +0400
Message-ID: <516E66D7.2000001@overta.ru> (raw)
In-Reply-To: <CANXqFx_LLoFt-iPaOwK0hncZ3yz5-4Z3PHqJrmfa_6OGTCtZZA@mail.gmail.com>
On 17.04.2013 12:19, Тарас Перебейносов wrote:
> Всем привет!
>
> Есть ли быстрый удобный запросить из DNS существующие записи по шаблону
> "server[0-9]{3}" )?
> Пока в голову пришел только вариант запихать dig в цикл и перебрать все
> варианты от 000 до 999, но это 1000 запросов! Может какая-то есть
> реализация запроса по шаблонам?
>
Если трансфер разрешён, то можно забрать зону целиком,
а потом искать то, что нужно.
dig -t axfr domain
parent reply other threads:[~2013-04-17 9:09 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <CANXqFx_LLoFt-iPaOwK0hncZ3yz5-4Z3PHqJrmfa_6OGTCtZZA@mail.gmail.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=516E66D7.2000001@overta.ru \
--to=ang@overta.ru \
--cc=sarlug@lists.lug.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Saratov Linux User Group
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sarlug/0 sarlug/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sarlug sarlug/ http://lore.altlinux.org/sarlug \
sarlug@lists.lug.ru sarlug@lug.ru
public-inbox-index sarlug
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sarlug
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git