Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th August 2008, 14:51
TheFuzzy0ne TheFuzzy0ne is offline
Member
 
Join Date: Aug 2008
Posts: 32
Thanks: 3
Thanked 0 Times in 0 Posts
Default Preventing wildcard DNS redirecting to "This IP is shared" page.

Is it possible to have my server throw an error of some kind when "anyhost.mydomain.tld" is used? I'm using dyndns, and to my knowledge it needs to have wildcard DNS active for it to work(?), but now any domain name that's not been registered on my servers DNS redirects to the "This IP address is shared." page. Is there any way to stop this short of registering every imaginable co-domain? I'd like to avoid having to maintain an .htaccess file if at all possible.

Sorry, about the title. I really can't think of a better one, but if anyone else can, please let me know.
Reply With Quote
Sponsored Links
  #2  
Old 9th August 2008, 11:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
Default

You get the shared-IP page because you don't have anyhost.mydomain.tld anywhere as ServerName or ServerAlias in your Vhosts_ispconfig.conf.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 9th August 2008, 13:50
TheFuzzy0ne TheFuzzy0ne is offline
Member
 
Join Date: Aug 2008
Posts: 32
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Exactly. But this only happens for any subdomains that aren't registered in my DNS. Obviously, I can put anyhost.mydomain.net into my DNS, but then any other sub domains that aren't registered. I can't add every single possibility to my DNS. For example:

www.mydomain.tld resolves a site
ww.mydomain.tld resolves the shared IP page.
w.mydomain.tld resolves the shared IP page.
anythingelse.mydomain.tld resolves the shared IP page.

Do you see what I mean? What I'd like is for those domains to show the "Page cannot be displayed" page in the browser. Just like you get if you went to http://randomsubdomain.google.com.
Reply With Quote
  #4  
Old 10th August 2008, 12:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,715 Times in 2,557 Posts
Default

Then you must remove the wildcard DNS record from your DNS server.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 10th August 2008, 13:22
TheFuzzy0ne TheFuzzy0ne is offline
Member
 
Join Date: Aug 2008
Posts: 32
Thanks: 3
Thanked 0 Times in 0 Posts
 
Default

I don't think I can, as the domain name is a subdomain of a subdomain, so it won't work without wildcard DNS. It would be really great if we could specify a default site, so if the server is accessed through any unregistered subdomain name, or through the IP, PHP will use header() to forward the user to the specified site. This could also be done through meta-refresh. What do you think?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid Proxy Caching on Linux obzerver Installation/Configuration 4 13th August 2008 19:51
Google Apps dayjahone General 19 29th March 2008 17:25
DNS Configuration Problems VMartins Installation/Configuration 10 24th July 2007 14:40
Unable send receive emails vassilis3 Installation/Configuration 15 19th May 2007 14:34
No SPF record. beryl Installation/Configuration 6 17th May 2007 19:52


All times are GMT +2. The time now is 13:35.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.