Find DNS?

beegled
beegled used Ask the Experts™
on
Hello,

Is there any way to find out what all of the DNS addresses are for the various domain servers on my network?  I would like to password protect some web pages using ASP but want to allow access to those pages to internal users by looking at their dns address to see if they are internal or not.  Any help is greatly appreciated.

Thank you,

David
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
At a command prompt, type nslookup. Enter your FQDN. A list of DNS server IPs will appear.
Les MooreSr. Systems Engineer
Top Expert 2008

Commented:
If your DNS servers are avialable on the internet, go to http://www.dnsreport.com and put in the domain name..
Les MooreSr. Systems Engineer
Top Expert 2008

Commented:
Sorry, I think I misread the question...
I think that what you are looking for is the reverse-dns lookup function of most web servers (off by default, usually). You want to know if you get a request from ip address 1.2.3.4, and you send a reverse-dns querry, you'll get back system.company.com and only if it returns systemx.mycompany.com will your server allow access to the pages.

Depending on your web server..

http://support.microsoft.com/default.aspx?scid=KB;en-us;q245574

Cheers!
OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

Commented:
seems like your question is a little unusual. why not just use authentication on the whole site. the local users will use pass current credentials anyway and therefore no need for this other stuff ?

Author

Commented:
I don't local users to have to enter a login and password which is why I don't authentication for everyone.

jjmck, what is the FQDN?  Also, will this give me a list of all of the ones on the netwrok or just the ones I can log into?

Thanks to all of you for the help.

David
Fully Qualified Domain Name. ie yourdomain.local

This will give you a list of all the dns servers responsible for that domain.

Author

Commented:
I see what we are talking about now.  The addresses that I am looking for are the same addresses that you would get using the Request.ServerVariables("REMOTE_ADDR") object in an ASP page if you are familiar with ASP at all.  Using nslookup doesn't give me the same addresses.

David

Author

Commented:
Nice try.  I am awding points for the first response.  Thank you all so much for the help.

David

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial