Internet.com
Get your
ISP-News
courtesy of
internetnews.com




Search ISP-Lists
Search:
ISP Channel
CLEC-Planet
ISP Glossary
ISP News
ISP-Planet
ISP-Lists
E-mail Newsletters
Opt-in Announcements
Discussion Forums
internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

The ISP-Lists.com Email Discussion List Community

<- Previous Message | Next Message ->
Thread Index
[isp-dns] Re: script to list nameservers
  • To: isp-dns@isp-dns.com
  • Subject: [isp-dns] Re: script to list nameservers
  • From: Alex Kamantauskas <alexk@...>
  • Date: Tue, 1 Jun 2004 12:27:16 -0400 (EDT)

 If your resolver is not the authoritative server for these domain names,
 you can do this:  make a file called 'foo' with the domain names in it,
 and run:

 $ for zone in `cat foo`; do echo "**$zone" >> output; dig $zone NS | grep
 "IN NS" >> output; done

 If you are using a more recent version of dig, this won't work (the grep
 "IN NS" won't get any hits).

 If your resolver *is* authoritative for the domain names, you'll have to
 use a different resolver (because your auth server will just return that
 all domain names are delegated to itself):

 $ for zone in `cat foo`; do echo "**$zone" >> output; dig
 @other.name.server $zone NS | grep "IN NS" >> output; done

 This will give you a file called output that should look like:

 **foo.com
 foo.com	1D	IN NS	ns1.customer.com
 foo.com	1D	IN NS	ns1.customer.com
 **bar.com
 bar.com	1D	IN NS	ns1.customer.com
 bar.com	1D	IN NS	ns1.customer.com
 **baz.com
 baz.com	1D	IN NS	ns1.otherisp.com
 baz.com	1D	IN NS	ns1.otherisp.com


On Tue, 1 Jun 2004, Andrew P. Kaplan wrote:

> Does anyone have a script that I can run against my 1000 domains on my
> master server that would list domain name and authorative name servers. My
> slave servers is going off line soon and I have been moving the nameserver,
> but use a range of registrars with some being out of my control so I need a
> list of domains that still have the old nameservers.
>
> Thank you.
>
> Andrew P. Kaplan
> www.cshore.com
>
> First snow, then silence.
> This thousand dollar screen dies
> so beautifully.
>
> --Simon Firth
>
>
>




> To unsubscribe via postal mail, please contact us at:
> Jupitermedia Corp.
> Attn: Discussion List Management
> 475 Park Avenue South
> New York, NY 10016
>
> Please include the email address which you have been contacted with.
>


-- 
/ak <alexk@...>

 An Englishman is a person who does things because they have
 been done before. An American is a person who does things because they
 haven't been done before.
  -- Mark Twain






To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Replies
[isp-dns] script to list nameservers, Andrew P. Kaplan
<- Previous Message | Next Message ->
Thread Index

ISP Glossary
Find an ISP Term

Need Help?

JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
Avaya Article: Call Control XML - Powerful, Standards-Based Call Control
Tripwire Whitepaper: Seven Practical Steps to Mitigate Virtualization Security Risks
Internet.com eBook: The Pros and Cons of Outsourcing
Go Parallel Article: Scalable Parallelism with Intel(R) Threading Building Blocks
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Go Parallel Video: Intel(R) Threading Building Blocks: A New Method for Threading in C++
HP Video: Is Your Data Center Ready for a Real World Disaster?
Microsoft Partner Portal Video: Microsoft Gold Certified Partners Build Successful Practices
HP On Demand Webcast: Virtualization in Action
Go Parallel Video: Performance and Threading Tools for Game Developers
Rackspace Hosting Center: Customer Videos
Intel vPro Developer Virtual Bootcamp
HP Disaster-Proof Solutions eSeminar
HP On Demand Webcast: Discover the Benefits of Virtualization
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Microsoft Download: Silverlight 2 Software Development Kit Beta 2
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt
Iron Speed Designer Application Generator
Microsoft Download: Silverlight 2 Beta 2 Runtime
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM IT Innovation Article: Green Servers Provide a Competitive Advantage
Microsoft Article: Expression Web 2 for PHP Developers--Simplify Your PHP Applications
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES