Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Mar 2008
    Posts
    195

    Default DNS resolve to all

    How can I configure the DNS in WHM so it resolves all domains by default.

    If someone points a domain to the servers I want to automatically resolve and not having to add the DNS zone manually for each one.

    I know this can be done, because there are allot of servers/services in which you point to their DNS and they start resolving to a default page without the server owner knowing you have pointed that specific domain to this server.

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    7

    Default

    I need the same, i got a lot of domains registeres using my dns and i want to resolve this to my homepage...

    Thanks

  3. #3
    Member
    Join Date
    Aug 2003
    Posts
    388

    Default

    Depends how the site is setup.

    IP Based Site: Any domain you point at it returns the configured website.

    Name Based Site: Any domains that are not configured for the server will show the default website for that ip.

  4. #4
    Member WebScHoLaR's Avatar
    Join Date
    Dec 2005
    Location
    Planet Earth
    Posts
    506

    Default

    Quote Originally Posted by dwykofka View Post
    Depends how the site is setup.

    IP Based Site: Any domain you point at it returns the configured website.

    Name Based Site: Any domains that are not configured for the server will show the default website for that ip.
    But in both cases, DNS for the domain needs to be setup on the server. There are few service providers that only want to point the domain to their Nameservers and thats it. e.g http://opensourceparking.com/ states:
    How to Park Your Domain

    * Domain owners: set your domain servers to ns1.opensourceparking.com and ns2.opensourceparking.com
    We can configure Apache to show a site as a default website but anyone has any idea that can we do such thing with BIND too?

    P.s I know this thread is few months old but got a requirement for such setup.

    Regards,
    WebScHoLaR

    WebHosting Blog: http://WebScHoLaR.net

  5. #5
    Member
    Join Date
    Mar 2008
    Posts
    195

    Default

    Well thats the BIG question. How did Opensourceparking do it?

    They dont have a way to know which domain points or not to there servers. I mean nobody notifies them about pointing a domain so they must have some way to doing it.

    Also, I wonder what happens if someone points them a domain which is having a DDOS attack, and how they handle those large spikes.

    My interested on having such a setup was because I find it extremely annoying to have to park domains manually, I want some domains to park automatically only witht the users changing his DNS to my servers.

  6. #6
    Member
    Join Date
    Dec 2008
    Posts
    81

    Default

    $TTL 86400
    . IN SOA ns4.example.com hostmaster.example.com (
    2002042600 1h 15m 30d 1h )
    IN NS ns4.example.com

    ns4.example.com IN A 10.0.0.1

    *. IN A 10.0.0.10


    Needs to be root zone, if it don't work, don't blame me

  7. #7
    Member
    Join Date
    Sep 2005
    Posts
    38

    Default

    Could someone please further elaborate britsenigma answer.

    I also wish to have a setup where any domain could simply be pointed to the nameservers and display a default page (instead of constantly having to add it manually first)

    I get confronted with the error message

    Unable to parse zone: Error while parsing zonedata for root.domain.eu: bad IP address, line 9
    ...propagated at /usr/local/cpanel/Cpanel/CPAN/Net/DNS/ZoneFile/Fast.pm line 142.
    The line mentioned contains the IP of the nameserver (as shown in britsenigma's example) which is correct

    If someone could perhaps post screenshots of their setup or a more step-by-step explenation, then I would be very greatful.

    My main question would be.
    1. in the case of domain.com being my main domain (with ns1 and ns2 .domain.com respectivly) what would the zonename be ?

    (putting up a small guide would be a greater contribution then just an answer to my question.)

    Thanks in advance

  8. #8
    Member
    Join Date
    Sep 2005
    Posts
    38

    Default

    Still i'm not able to setup the mentioned method to accept all DNS records.
    Could anyone please elaborate.

  9. #9
    Member
    Join Date
    Apr 2006
    Location
    localhost
    Posts
    40

    Default

    I found the answer, but I didn't checked, so it may not work. Use at your own risk.

    You want:

    zone "." {
    type master;
    file "/var/named/named.root";
    };

    in /etc/named.conf

    Then in named.root you would have:

    @ IN SOA ...
    IN NS yourserver.yourdomain.com.

    * IN A 192.168.1.1

Similar Threads & Tags
Similar threads

  1. PHP DNS Resolve issues
    By joeblack in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-23-2008, 08:04 PM
  2. DNS Doesnt Resolve
    By sesiri in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-18-2006, 01:27 AM
  3. Intermittent DNS resolve problems
    By marcoh in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-20-2006, 04:08 AM
  4. cannot resolve external dns names
    By crackdom in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-16-2006, 08:07 AM
  5. DNS Issues, resolve.conf and /etc/hosts
    By rublind in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 02-28-2005, 04:44 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube