Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 01-20-2010, 12:09 AM   #1
camperjohn64
Confirmed User
 
Industry Role:
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,531
DNS wildcards for named.conf and Apache are working (almost)

I have about 4000 domains, and wanted to make a generic DNS and Apache configuration that will take ANY domain and park it without having to make an account and park it in Cpanel. This way, any idle domains I have can show ads and content (like godaddy does or any parking service does for that matter)

I have it working too...almost!

1) The configuration allows me to have any domain show a parking page, even if that domain doesn't have an account. This is working fine.

2) Strangely, this new configuration disables the file_get_contents function and the curl function(s).

Does anyone have ideas on why file_get_contents would stop working with the configuration below? How do I fix it so I can park domains, and still have the file_get_contents function working?

Here is the addition to my named.conf file:
Code:
named.conf:

zone "." {
        type master;
        file "/var/named/parking.db";
};
The associated /var/named/parking.db database file:
Code:
/var/named/parking.db:

$TTL    604800
@      86400    IN      SOA     ns1.ryd0.com. john.mccarthy.net. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL

        IN      NS      .
*.      IN      A       204.15.192.194

;@      86400   IN      SOA     ns1.ryd0.com. john.mccarthy.net. (
And the additions to my httpd.conf file
Code:
<VirtualHost 204.15.192.194:80>
    ServerAlias *
    DocumentRoot /home/photof/public_html

    ...more stuff deleted...
</VirtualHost>
Not only does this park domain.com, but it also parks http://www.domain.com, or whatever.domain.com etc etc...

Again, this is working, but it seems to disable file_get_contents. Can I make a second DNS zone that will fix this?

Ideas anyone?
__________________
www.gimmiegirlproductions.com
camperjohn64 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 01-20-2010, 09:44 AM   #2
fatfoo
ICQ:649699063
 
Industry Role:
Join Date: Mar 2003
Posts: 27,763
camperjohn64, you have 4000 domains? Congratulations, you are really big. These script questions are too complicated for me to answer. I will bump this thread, so maybe some else will answer.
__________________
Send me an email: [email protected]
fatfoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 01-20-2010, 10:03 AM   #3
camperjohn64
Confirmed User
 
Industry Role:
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,531
I used to be hosting 49,000 domains...ah the good old days...

The odd thing is about the above settings is that the generic "Host anything" DNS settings work fine, but it also re-routes the file_get_contents function back to itself. So there is obviously something that file_get_contents uses in the DNS to go outside, that is getting wildcarded to come back inside.

It's like the zone "." command means "everything coming in AND going out" rather than just everything coming in.
__________________
www.gimmiegirlproductions.com
camperjohn64 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.