Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,356

    Default I have an idea for a cool script.

    So here is the idea:

    Make a script that scans the apache error log daily for the error:

    lame server resolving your-main-domain.com ect..

    Then when t finds one it create a a dns zone file for that domain and a specified i.p..

    Then it scp's the dns zone file to your dns servers /var/named/ directory?

    What do you guys think?



    Chaze

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,356

    Default

    Nobody agrees?

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge gorilla's Avatar
    Join Date
    Feb 2004
    Location
    Sydney / Australia
    Posts
    736

    Default

    greta idea

  4. #4
    cPanel Verified Vendor This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Aug 2001
    Location
    All over Europe
    Posts
    407

    Default

    Quote Originally Posted by gorilla
    greta idea
    Wasn't she Greta Garbo?
    http://netenberg.com/
    AccountLab Plus Affordable professional webhosting billing
    Click Be! Building websites as easy as it click be
    Fantastico De Luxe - Install your favourite scripts at a mouse click
    Universina - The CPanel skin with Heart and Soul

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge gorilla's Avatar
    Join Date
    Feb 2004
    Location
    Sydney / Australia
    Posts
    736

    Default

    Quote Originally Posted by kosmo
    Wasn't she Greta Garbo?
    You know your women , that was to be expected from a greek gigolo

  6. #6
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by DWHS.net
    So here is the idea:

    Make a script that scans the apache error log daily for the error:

    lame server resolving your-main-domain.com ect..

    Then when t finds one it create a a dns zone file for that domain and a specified i.p..

    Then it scp's the dns zone file to your dns servers /var/named/ directory?

    What do you guys think?



    Chaze
    Bad idea .... creating such a script would allow ANYONE to install new zone files
    to your DNS server by simply updating their domains to use your DNS servers.

    This would of course open up a potential pandora's box of security problems.

    I do have a similiar script installed on my server as a cronjob but instead of
    blindly creating DNS zones when it detects the error message, it just simply
    sends me an email message to let me know there is a domain out there
    configured for our network that is not setup in our DNS. That way, I can
    review it and determine if it is a domain that should be legitimately added
    to our DNS servers or not.

  7. #7
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,313
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Spiral
    I do have a similiar script installed on my server as a cronjob
    Any interest in sharing it?

  8. #8
    Member rpmws's Avatar
    Join Date
    Aug 2001
    Location
    back woods of NC, USA
    Posts
    1,858

    Default

    is there a way to do wildcards with bind? have bind point normally (non) resolving domains to a particular IP? a way to catch traffic you normally would not be able to.
    Just keeping my "eye" on things....
    R. Paul Mathews
    RPMWS - diehard cPanel Nutcase

  9. #9
    Member
    Join Date
    Jul 2004
    Posts
    68

    Default

    I don't think you can create a complete wildcard zone for bind to shuck all non-resolvable domains to. I'll have to find my Bind book and see if such a domain is possible. I don't think so though.
    Specks

  10. #10
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by Specks
    I don't think you can create a complete wildcard zone for bind to shuck all non-resolvable domains to. I'll have to find my Bind book and see if such a domain is possible. I don't think so though.
    Actually you can but what would be the point?

  11. #11
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,356

    Default

    Quote Originally Posted by Spiral
    Actually you can but what would be the point?
    I was thinking to capture canceled domains traffic and to have a page show that the account is no longer active.

    Also to not have lame server resolving errors.

    Not a big deal but when you have thousands of accounts the traffic can ad up and help promote your company while helping the surfer too.

  12. #12
    Member
    Join Date
    Nov 2003
    Location
    Panama City, FL
    Posts
    144

    Default

    Isn't it the case that if a request comes in that doesn't match anything in httpd.conf, that apache shows the server-wide default page? (i.e. "There is no website configured at this address")...

    Seems like you could customize that page with your desired info... *shrug*

    My apologies if this wouldn't apply to all cases. And sure, it'd only be html, but hey, it's a start.

  13. #13
    cPanel Partner NOC cPanel Partner NOC Badge DWHS.net's Avatar
    Join Date
    Jul 2002
    Location
    LA, Costa RIca
    Posts
    1,356

    Default

    Quote Originally Posted by Ishware
    Isn't it the case that if a request comes in that doesn't match anything in httpd.conf, that apache shows the server-wide default page? (i.e. "There is no website configured at this address")...

    Seems like you could customize that page with your desired info... *shrug*

    My apologies if this wouldn't apply to all cases. And sure, it'd only be html, but hey, it's a start.
    True but only if a dns zone exists for that domain name, this script would create the dns zone sending them to a i.p. or the default page.

    If their is no dns zone then the connection goes to a page cannot be found error.

Similar Threads & Tags
Similar threads

  1. How cool is that!
    By DavidR in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-28-2005, 10:46 AM
  2. Idea: Script Modules?
    By JustinK in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-19-2002, 12:14 PM
  3. COOL New Theme
    By thevsp in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 04-06-2002, 11:39 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube