The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
/etc/hosts via ssh KeesH AIX 23 02-26-2007 07:32 PM
Hosts.allow and hosts.deny huddlestonsnk UNIX for Dummies Questions & Answers 1 10-18-2006 12:34 PM
etc/hosts amon Security 1 01-24-2006 05:55 AM
hosts.allow & hosts.deny Sorrento UNIX for Dummies Questions & Answers 2 08-18-2005 10:25 PM
/etc/hosts tamemi UNIX for Dummies Questions & Answers 2 04-04-2003 05:42 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-05-2006
milhan milhan is offline
Registered User
  
 

Join Date: Oct 2002
Location: /home
Posts: 133
Question Looking up hosts under a domain

hello folks,

I am looking for a command on Unix/Linux that will query the hosts connected to a domain..

For Ex: I would like to know what hosts are attached to domain brown.edu . Assume there are:

cs.brown.edu, cob.brown.edu, math.brown.edu, mail.brown.edu, web.brown.edu and so on. So when I query brown.edu it should return all these specific computers that are hooked up to the domain brown.edu.

I tried the linux commands host and nslookup but they didn't return me the hosts attached to a domain, but instead they return the IP address of specific host if that host exists.

regards,
  #2 (permalink)  
Old 12-06-2006
Darwin_ Darwin_ is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 23
dig -t AXFR domain.tld

allows you to get a zone transfer from the specified domain, what includes a list of all hosts within this domain. Then you could grep the output for all host entries.

Note: zone transfer needs to be allowed on the authoritative name server for the domain and your IP. Otherwise it will not work.

Darwin
Closed Thread

Bookmarks

Tags
linux commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:46 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0