Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    May 2007
    Posts
    7

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

    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?
    Last edited by tttomasz; 02-08-2010 at 04:28 AM.

  2. #2
    Member
    Join Date
    May 2007
    Posts
    7

    Default

    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

Similar Threads & Tags
Similar threads

  1. One domain deleted from /etc/localdomains
    By northtrex in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 02-17-2011, 03:52 AM
  2. /etc/localdomains is always missing one domain name
    By jasgot in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 07-08-2006, 04:50 AM
  3. Domain keeps on getting removed from /etc/localdomains
    By AusChucky in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-21-2005, 06:05 PM
  4. parked domain pointing to add-on domain
    By enorth in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-20-2004, 08:28 PM
  5. what's the difference between domain parking and domain pointing?
    By matt621 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-29-2003, 08:16 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube