Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    USA
    Posts
    876

    Nameserver/DNS Catch-all

    I've spent 4 hours today searching all over Google, WebHostingTalk, and even contacted LiquidWeb (the company that hosts my server), and I absolutely can't find a solution to what I want to do. LiquidWebMike is going to look into it in a few days when he has time, but if anyone here knows a solution, I'd really like to know it now because from what I've read, other people are looking for something like this too.

    Here's the facts:

    I have about 100+ domains.
    Let's say about 20 of them are setup on my server.
    Let's also say that all 100+ have my servers nameservers.
    Therefore, the 20 that are setup on my server through WHM, all show their sites, index listings, whatever, however the other 80 which are not setup in whm, and thus in the nameservers, show a "Page cannot be displayed" when you try and access them.

    Makes sense right? If the domains come into the server and don't know where to go, then sure, it should error out. However, what I'd like to do is make them hit a default parked page, sort of a catch-all deal, for any domain that is not setup in WHM.

    So for example, I have these domains:
    www.bob.com
    www.john.com
    www.tom.com

    -Bob.com is setup in WHM, works great, accesses and shows a site.
    -John.com and Tom.com were registered and configured with the right nameservers, but aren't setup in WHM. I'd like them to do a sort of Sedo type thing, where you point your nameservers to the server and it points them to a "This domain is parked at Sedo!" type deal. I suppose some sort of wildcard dns would be needed here, really I'm not sure though. Maybe some sort of script (anyone know of an existing one), or maybe it's a simple one line entry I don't know and you guys can help. Either way, I appreciate any assistance you guys can provide..... thanks!

  2. #2
    Join Date
    May 2005
    Location
    Planet Earth
    Posts
    813
    Depending on your registrar, you could setup a "web-redirection" to some page..

    Sedo does the same as configuring your domain in WHM, they have no secret They are handling the domain same way as other control panel does.
    PutFile.io — Disrupting traditional file hosting.
    █ Signup Early and enjoy Unlimited space/bandwidth for your files hosting, Forever!
    █ No Ads.
    █ No Countdowns.

  3. #3
    Join Date
    Jul 2002
    Location
    Kuwait
    Posts
    10,620
    you cant configure domains automatically without adding them to your DNS, sedo adds the domain to their DNS records and have a default IP address to point it to.

    i do exactly what you want by having a <VirtualHost> entry pointing to special directly.

    for example if you go to the main server IP http://111.222.333.444 it will point by default to /etc/httpd/htdocs/index.html for example (having in mind there is a default <virtualhost> entry that points to that dir, otherwise it will point to the first webhosting account.

    so what you need todo is the following:
    1- when you add a domain to your DNS point it to a certain IP say 111.222.333.444
    2- add an entry to your httpd.conf that states:
    Code:
    <VirtualHost 111.222.333.444>
    ServerName your.main.server.hostname.example.com
    DocumentRoot /some/where/you/want
    </VirtualHost>
    also make sure the IP is dedicated for this purpose so whenever you point ANY domain to that IP it will be redirected to that dir and no need to add ServerAlias line and a domain next to it.

    i doubt u can add *.com in your DNS and point it to certain IP, but what i stated above should work just fine, of course baring in mind that you add the domains you want to your DNS and point them to that IP
    Bashar Al-Abdulhadi - KuwaitNET Internet Services Serving customers since 1997
    Kuwait's First Webhosting and Domain Registration provider - an ICANN Accredited Registrar

    Twitter: Bashar Al-Abdulhadi

  4. #4
    Join Date
    May 2005
    Location
    england
    Posts
    43
    Im sorry to dig up an old thread Rich, but how did you get on, did you resolve your problem..

    I tto have the same problem right now with 00,000 domains. I cant believe Sedo would make an entry for millions of domains in their dns. How can that be automated..

    Did you try using a wildcard entry system?

  5. #5
    Join Date
    Jun 2005
    Posts
    531
    The simplest approach (and what we support for our customers) is, in fact, a wildcard DNS record. It can be done on two levels.

    For specific domains, you create a *.domainname.com record that points to the target IP. Your www and other addresses point to their appropriate IPs.

    To handle a nameserver-wide catchall, you create a *.com wildcard, *.net, etc.

    The specifics are peculiar to the nameserver software that you're running.

    We forward the wildcards to a redirector so that we can both identify what the wildcards are resolving to (i.e., what people are typing in) and count the traffic. The redirector then sends the request (with a 403 Redirect) on to the landing page configured in our database, or to the default if there's no IP specified.

    For djbdns the record is C*.mumble.com.:redirect.domainname.com. where mumble.com is the domain for which we want to capture the non-www entries and redirect.domainname.com is the canonical name for the server that handles our counting and redirection. In your case redirect.domainname.com would be your default landing page.

    If you google "DNS poisoning" and the software you're using you'll probably find details and/or clues that'll help in your specific situation.

    Hope that helps....

  6. #6
    did you ever get this to work?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •