Dear all, I assume that due to security reasons such command does not exist "by default" in custom installations but... Is there any command to query a DNS-server for all the hostnames being served by it? Of course, I could nmap to discover which machines are up and running, but I look for something similar to 'ypcat hosts' ... Any suggestions? Thanks, Martin
On Wednesday 14 February 2001 10:31, Martin Mielke wrote:
Dear all,
I assume that due to security reasons such command does not exist "by default" in custom installations but...
Is there any command to query a DNS-server for all the hostnames being served by it? Of course, I could nmap to discover which machines are up and running, but I look for something similar to 'ypcat hosts' ...
Any suggestions?
Thanks,
Martin Martin,
Make sure you have bindutil installed and look at the man pages for the
programs it provides. I'm pretty sure there is something that will do that.
Please let us know what you find.
HTH,
Steve
nariana:/usr/lib # rpm -qi bindutil
Name : bindutil Relocations: (not relocateable)
Version : 8.2.3 Vendor: SuSE GmbH, Nuernberg,
Germany
Release : 30 Build Date: Tue Jan 30 17:48:37
2001
Install date: Tue Feb 13 07:29:06 2001 Build Host: Hubert.suse.de
Group : Networking/Utilities Source RPM: bind8-8.2.3-61.src.rpm
Size : 1341863 License: 1989 The Regents of
the University of California.
Packager : feedback@suse.de
Summary : Utilities to query and test DNS
Description :
This package includes the utilities nslookup, dig, dnsquery and host
used to test and query DNS.
The new bind v8 named daemon is found in the package bind8.
Authors:
--------
ISC Software
"Steven T. Hatton" wrote:
On Wednesday 14 February 2001 10:31, Martin Mielke wrote:
Dear all,
I assume that due to security reasons such command does not exist "by default" in custom installations but...
Is there any command to query a DNS-server for all the hostnames being served by it? Of course, I could nmap to discover which machines are up and running, but I look for something similar to 'ypcat hosts' ...
Any suggestions?
Thanks,
Martin Martin,
Make sure you have bindutil installed and look at the man pages for the programs it provides. I'm pretty sure there is something that will do that. Please let us know what you find.
HTH,
Steve
Wow. Can't believe I forgot about dig. Thanks Steve. dig should get you want you're looking for Martin... Ken
On Wed, 14 Feb 2001, Ken Hughes wrote:
"Steven T. Hatton" wrote:
On Wednesday 14 February 2001 10:31, Martin Mielke wrote:
Dear all,
I assume that due to security reasons such command does not exist "by default" in custom installations but...
Is there any command to query a DNS-server for all the hostnames being served by it? Of course, I could nmap to discover which machines are up and running, but I look for something similar to 'ypcat hosts' ...
Martin,
Make sure you have bindutil installed and look at the man pages for the programs it provides. I'm pretty sure there is something that will do that. Please let us know what you find.
Wow. Can't believe I forgot about dig. Thanks Steve. dig should get you want you're looking for Martin...
If the authoritative servers don't allow zone transfers you're still not going to be able to get the hosts with dig. Greg
Martin Mielke wrote:
Dear all,
I assume that due to security reasons such command does not exist "by default" in custom installations but...
Is there any command to query a DNS-server for all the hostnames being served by it? Of course, I could nmap to discover which machines are up and running, but I look for something similar to 'ypcat hosts' ...
You can try the "ls -d domain.name" command within nslookup to list all records for domain.name, but it won't work unless the nameserver is configured to "allow-transfer" to you (or everyone). Basically, odds are it won't work. I don't know of any other way to query a reasonably secure nameserver to find all hostnames though. Ken
**strings of ones and zeros arranged themselves into a message from Ken Hughes
Try dig or host... there are options for dig to do zone transfers or host to list the zone. - Herman On Wed, 14 Feb 2001, Martin Mielke wrote: ->>Dear all, ->> ->>I assume that due to security reasons such command does not exist "by ->>default" in custom installations but... ->> ->>Is there any command to query a DNS-server for all the hostnames being ->>served by it? Of course, I could nmap to discover which machines are up and ->>running, but I look for something similar to 'ypcat hosts' ... ->> ->>Any suggestions? ->> ->> ->>Thanks, ->> ->>Martin ->> ->> ->>-- ->>To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com ->>For additional commands send e-mail to suse-linux-e-help@suse.com ->>Also check the FAQ at http://www.suse.com/support/faq ->>
participants (6)
-
Greg Thomas
-
Herman Knief
-
jfweber@eternal.net
-
Ken Hughes
-
Martin Mielke
-
Steven T. Hatton