The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hey experts ! ~ about DNS

Discussion in 'Bind / DNS / Nameserver Issues' started by persiasoft, Jul 31, 2007.

  1. persiasoft

    persiasoft Active Member

    Joined:
    Nov 15, 2004
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    do you know about :
    how many domains pointed to your DNS ?
    which domains point to your DNS ?

    1) i want to list all of the domains that pointing to my DNS ! i wanna notify them to change their DNS

    2) if you saw webhosting.info , you know that ratings are related to DNS,
    i have 3 hosting with different DNSs and wanna merge those into 1 hosting and point all domains to 1 specified DNS ( this will help me to raise my rating ! )


    is there any site to record history of domains ? it can very help full ! after entering ns1.myhost.com it will shows all domains that pointing to this DNS !

    waiting for your response :D
     
  2. jandafields

    jandafields Well-Known Member

    Joined:
    May 6, 2004
    Messages:
    426
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    just make a script using /etc/localdomains and dig,

    so it runs a loop like this:

    dig $domain NS |grep yournameserver.com

    It will then check every domain on your server, and it will return the ones that have your nameserver listed
     
  3. persiasoft

    persiasoft Active Member

    Joined:
    Nov 15, 2004
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    the problem is , this script just works for hosted domains !
    i wanna know the other domains that pointing to my dns ...
     
  4. jandafields

    jandafields Well-Known Member

    Joined:
    May 6, 2004
    Messages:
    426
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    why would other domains be using your nameservers if they aren't hosted with you???
     
  5. persiasoft

    persiasoft Active Member

    Joined:
    Nov 15, 2004
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    they are using our name servers as dns server, to forwarding URL , Email, create A record and ...
    from 1500 domains, we have 150 domains that unknown and they pointed their domains to our dns
     

Share This Page