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.

how to check pointing of all domain from /etc/localdomains

Discussion in 'General Discussion' started by tttomasz, Feb 8, 2010.

  1. tttomasz

    tttomasz Member

    Joined:
    May 18, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hello.

    I'd like to filter all domains from /etc/localdomains that points to my server. What is the easyiest way to do this?
    I found many scripts that are doing domain pointing checks but only for main domains (parked while creating account on top of account) - i need to filter all domains and then remove sudomains from this list.

    Any idea how to do this? :)
     
    #1 tttomasz, Feb 8, 2010
    Last edited: Feb 8, 2010
  2. tttomasz

    tttomasz Member

    Joined:
    May 18, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    OK i found solution :)

    for i in `cat /etc/localdomains`;do dig $i|grep NS|grep -v ROOT-SERVERS|grep -v ANSWER>>domains.txt;done
     
Loading...

Share This Page