Saratov Linux User Group
 help / color / mirror / Atom feed
* Re: [Sarlug] Check host presence in DNS, DHCP
  @ 2013-04-17  9:09     ` Alexander Grigoriev
  0 siblings, 0 replies; only message in thread
From: Alexander Grigoriev @ 2013-04-17  9:09 UTC (permalink / raw)
  To: Saratov Linux User Group Maillist

On 17.04.2013 12:19, Тарас Перебейносов wrote:
> Всем привет!
>
> Есть ли быстрый удобный запросить из DNS существующие записи по шаблону
> "server[0-9]{3}" )?
> Пока в голову пришел только вариант запихать dig в цикл и перебрать все
> варианты от 000 до 999, но это 1000 запросов! Может какая-то есть
> реализация запроса по шаблонам?
>

Если трансфер разрешён, то можно забрать зону целиком,
а потом искать то, что нужно.

dig -t axfr domain



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-04-17  9:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-17  9:09     ` [Sarlug] Check host presence in DNS, DHCP Alexander Grigoriev

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