I'm hoping someone can help. I'm struggling to work this out and hope that there is a simple way around it.
I'm trying to get a list of all machines in a local DNS server. For the purposes of my testing it's a Win2008 DNS, but I'd like to try and find a way that works for any if possible.
Essentially I want the equivalent of nslookup
, but for every machine in the DNS.
For example. I don't even mind if it just lists Machine names.
192.168.0.1 Desktop1.domain.local
192.168.0.2 Server2.ad.domain.local
192.168.0.3 Server3.sub.domain.local
I don't mind if the solution is Windows or Linux.
I've been trying to use Dig in Ubuntu, but I'm starting to think it's not really designed to do what I thought it was.
dig +nocmd +domina.local any +multiline +noall +answer
Sort of in my basic logic, I want something like
nslookup -all
or
nslookup *
dig axfr domainname