Domain parking, wildcarding

Discussion in 'Site & Server Administration' started by Tychus, Aug 16, 2008.

  1. #1
    I'm trying to set up a domain parking site. To do this, I need my DNS server to take all incoming queries that are not explicitly defined to go to a default IP address... basically wildcarding.

    How can I make this happen with BIND DNS? I don't want to have to add a zone file for every single domain name, since that would require separate action on the domain parker's end, and also mine.
     
    Tychus, Aug 16, 2008 IP
  2. Tychus

    Tychus Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Anyone have an idea on how to do this?
     
    Tychus, Aug 16, 2008 IP
  3. nimhost

    nimhost Active Member

    Messages:
    235
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #3
    never try with bind cause i'm using my registrar dns :)
     
    nimhost, Aug 17, 2008 IP
  4. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #4
    I doubt you can do that with Bind, you need to have a zone for each domain which is what you don't want to do. There is a MySQL DNS server about, if you have the privileges (i.e. root) to use it, you can tweak it to return the same IP for unknown zones.

    Jay
     
    jayshah, Aug 17, 2008 IP
  5. xous

    xous Active Member

    Messages:
    173
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #5
    Hi,

    You can easily do it with bind but it becomes significantly more complicated if you want to use the same server for forward and recursive queries.

    Assuming you are just using it for forward queries:

    Simply create a zone like the following.

    
    $ORIGIN .
    $TTL 3600       ; 1 hour
    .               IN SOA  ns1.example.net. dnsadmin.example.net. (
                                    255        ; serial
                                    10800      ; refresh (3 hours)
                                    3600       ; retry (1 hour)
                                    604800     ; expire (1 week)
                                    86400      ; minimum (1 day)
                                    )
                            NS      ns1.example.net.
                            NS      ns2.example.net.
    ; define name-servers
    ns1.example.net.        IN      A       10.0.1.1
    ns2.example.net.        IN      A       10.0.2.1
    ; define wildcard-host
    *.                      IN      A       10.0.3.1
    
    Code (markup):
    The name-servers do not need to be defined in this zone if they are defined in a different zone on both of the name-servers you are using for your wild-card setup.

    In this example the ip address 10.0.3.1 will always been returned for any zone that is not ns1.example.net. or ns2.example.net.
     
    xous, Aug 17, 2008 IP
  6. Tychus

    Tychus Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for the info. What would I put in the /etc/named.conf as the zone?
     
    Tychus, Aug 17, 2008 IP
  7. xous

    xous Active Member

    Messages:
    173
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #7
    Assuming you placed that in a file named: /var/bind/pri/root.zone
    (The file name doesn't matter as long as they match)

    
    zone "." {
            type master;
            notify no;
            file "/var/bind/pri/root.zone";
    };
    
    Code (markup):
     
    xous, Aug 18, 2008 IP
  8. lifeinbc

    lifeinbc Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    how can I drive clicks to my domains that are parked with a domain parking company. i know this can be done
     
    lifeinbc, Aug 19, 2008 IP
  9. rajiwebstar

    rajiwebstar Peon

    Messages:
    78
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    If you are doing this than, ready to get ban earlier than you can expect :cool:
     
    rajiwebstar, Nov 21, 2008 IP