On Mon, Jul 20, 2009 at 5:33 PM, James Kerr<[email protected]> wrote:
> How can I check on one of our DNS servers what entry it has for a certain
> website?
nslookup -type=ANY -norecurse %WEBSITE% %NAMESERVER%
For example:
nslookup -norecurse -type=ANY www.example.com. 192.0.2.42
That means:
"-type=ANY" means you'll get all records it knows.
"-norecurse" prevents the resolver (nameserver) from querrying other
servers, so you'll only see what it knows as authoritative or has
cached from previous lookups. If it has no records you'll just get a
referral to some nameservers.
"%WEBSITE%" is the FQDN you're looking for. For best results,
include the trailing dot which designates the root domain.
"%NAMESERVER%" is your DNS server. It can be a name resolvable by
your client OS, or an IP address. Leave it blank and NSLOOKUP will
get a default from the OS.
-- Ben
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~