?
Solved

dns host lookup using dig or host

Posted on 2004-04-22
5
Medium Priority
?
305 Views
Last Modified: 2011-08-18
hi experts,
I have a newbie question concerning DNS. i have a dns server on my network. we'll just call it's host name dns. i need to do a lookup of all the hostnames it has in its tables using either the dig or host command. i can do a single lookup like this

host hostname.com dns

where hostname is the hostname i want to lookup and dns is the dns host name. this command assumes u know what host names the server already has in its tables though.

am i going about this the right way by using either dig or host to obtain all the host names it has in its tables on the dns? if this is not the right course what could i do to obtain this information? thanks experts. oh and i read the man pages, but i could not figure it out if they had some flag u could set.
0
Comment
Question by:jaxkewl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 8

Expert Comment

by:da99rmd
ID: 10889460
Dont think you can list all entrys but you can list all entrys under a specific domain like this
dig any hostname.com @(ip of the dns)
this will give you the *.hostname.com entries.

/Rob
0
 
LVL 14

Expert Comment

by:pablouruguay
ID: 10891151
you can dicriminated too. example

when da99rmd put any you can change

ns   .... Name Servers
mx ... Mail server

0
 
LVL 20

Expert Comment

by:jmcg
ID: 14834061
I think that these days you would use

host -l mydomain.tld

to list the hosts at a domain. Not all DNS servers will oblige, however.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 14858352
PAQed with no points refunded (of 250)

modulo
Community Support Moderator
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question