Results 1 to 2 of 2

Thread: Multiple domain names with one nameserver

  1. #1
    Junior Member
    Join Date
    Jan 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default Multiple domain names with one nameserver

    Multiple domain names with one nameserver
    I'm trying to set up multiple domains with their corresponding email domain addresses on a virtual private server.

    The vps is running Debian5 Lenny and has two static IP addresses.
    I installed Bind9 for the dns, Apache2 for the web server and Qmail for the email server.
    The other thing I needed was to register the domain names. This I did from godaddy.com. I registered three domain names and from the settings panel from each domain name in godaddy, I created three private name servers. I't might be easier to show what I did in table form, below.

    Domain name Ns1 Ns2

    domainname1.info ns1.domainname1.info ns2.domainname1.info
    domainname2.info ns1.domainname1.info ns2.domainname1.info
    domainname3.info ns1.domainname1.info ns2.domainname1.info

    My vps allows me to assign one reverse DNS to each IP, so I've configured it as follows:
    ns1.domainname1.info 11.11.11.11
    ns2.domainname1.info 22.22.22.22

    I've configured virtual hosting on Apache2, so the web site matches the domain name. That works and I'm happy with that.
    The problem is that I don't know how to configure Bind9 or qmail or both to have three separate email domain names with one pair of nameservers.

    user@domainname1.info user@domainname2.info user@domainname3.info


    My mail server is working, I can send and receive emails, but I can only use user@domainname1.info . To be more exact the domain name seen is user@ns1.domainname1.info
    So I don't know how configure bind or qmail to use multiple email domain names and I don't know how to get rid of the “ns1.” from the email domain name address.
    I can't figure out if this is a bind problem or a qmail problem. Probably both!
    Initially I thought the problem was the /etc/hosts and /etc/hostname files that dictated the domain name used by qmail in the email address. I tried changing these files to use “domainname1.info” then “domainname2.info” and “domainname3.info” successively. But each restart showed that the mail domain name is the same user@ns1.domainname1.info
    At this point I should show the db.* zone files from bind. Below is the contents of four db.* files that I think are relevant for this problem:

    ;db.domainname1.info
    $TTL 604800
    @ IN SOA ns1.domainname1.info. root.localhost. (
    2006012106; serial-no
    28800; refresh, seconds
    7200; retry, seconds
    604800; expiry, seconds
    86400 ); minimun-TTL, seconds
    ;
    domainname1.info. 28800 IN NS ns1.domainname1.info.;
    domainname1.info. 28800 IN NS ns2.domainname1.info.;
    ns1.domainname1.info. IN A 11.11.11.11
    ns2.domainname1.info. IN A 22.22.22.22
    ;
    domainname1.info. IN MX 0 ns1.domainname1.info.
    ;
    domainname1.info. IN A 11.11.11.11
    mail IN A 11.11.11.11
    ftp IN CNAME domainname1.info.
    www IN CNAME domainname1.info.
    domainname1.info. IN TXT "V=spf1 a mx -all"
    domainname1.info. IN TXT "V=spf1 a mx ip4:11.11.11.11 -all"
    ------------------------------------------------------------

    ;db.domainname2.info

    $TTL 604800
    @ IN SOA ns1.domainname1.info. root.localhost. (
    2006012105; serial-no
    28800; refresh, seconds
    7200; retry, seconds
    604800; expiry, seconds
    86400 ); minimun-TTL, seconds
    ;
    domainname2.info. 28800 IN NS ns1.domainname1.info.;
    domainname2.info. 28800 IN NS ns2.domainname1.info.;
    ns1.domainname1.info. IN A 11.11.11.11
    ns2.domainname1.info. IN A 22.22.22.22
    ;
    domainname2.info. IN MX 0 ns1.domainname1.info.
    ;
    domainname2.info. IN A 11.11.11.11
    mail IN CNAME domainname2.info.
    ftp IN CNAME domainname2.info.
    www IN CNAME domainname2.info.
    domainname2.info. IN TXT "V=spf1 a mx ~all"
    ns1.domainname1.info. IN TXT "V=spf1 a mx ip4:11.11.11.11 -all"
    ------------------------------------------------------------
    ;db.domainname3.info
    $TTL 604800
    @ IN SOA ns1.domainname1.info. root.localhost. (
    2006012105; serial-no
    28800; refresh, seconds
    7200; retry, seconds
    604800; expiry, seconds
    86400 ); minimun-TTL, seconds
    ;
    domainname3.info. 28800 IN NS ns1.domainname1.info.;
    domainname3.info. 28800 IN NS ns2.domainname1.info.;
    ns1.domainname1.info. IN A 11.11.11.11
    ns2.domainname1.info. IN A 22.22.22.22
    ;
    domainname3.info. IN MX 0 ns1.domainname1.info.
    ;
    domainname3.info. IN A 11.11.11.11
    mail IN CNAME domainname3.info.
    ftp IN CNAME domainname3.info.
    www IN CNAME domainname3.info.
    domainname3.info. IN TXT "V=spf1 a mx ~all"
    ns1.domainname1.info. IN TXT "V=spf1 a mx ip4:11.11.11.11 -all"
    ------------------------------------------------------------
    ;db.ip.in-addr.arpa
    $TTL 604800
    @ IN SOA ns1.domainname1.info. root.localhost. (
    2006012103; serial-no
    28800; refresh, seconds
    7200; retry, seconds
    604800; expiry, seconds
    86400 ); minimun-TTL, seconds
    ;
    domainname1.info. 28800 IN NS ns1.domainname1.info.;
    domainname1.info. 28800 IN NS ns2.domainname1.info.;
    ;
    11 IN PTR domainname1.info.
    22 IN PTR ns2.domainname1.info.
    ----------------------------------------------------
    I've found it very difficult to find any examples of such a problem on the Internet, that I could use. I've tried numerous alterations to these files with no success.

    Grateful for any help or suggestions.


    Thanks in advance


    lloowen
    Last edited by lloowen; 20th January 2010 at 04:27 PM.

  2. #2
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,515
    Thanks
    17
    Thanked 814 Times in 511 Posts
    Rep Power
    10

    Default

    It is called as vanity dns server. However, you need to nameserver with two public IPs. See our tutorial:

    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. BIND Named Multiple Domain Configuration
    By t0kneneng in forum Domain Name Server
    Replies: 1
    Last Post: 27th November 2009, 04:04 PM
  2. how does centos/redhat caching-nameserver work?
    By texaganian in forum CentOS / RHEL / Fedora
    Replies: 1
    Last Post: 9th October 2009, 12:54 AM
  3. Replies: 2
    Last Post: 6th June 2008, 12:53 PM
  4. Squid Resolve DNS Names
    By Asif Zia in forum Linux software
    Replies: 2
    Last Post: 4th June 2008, 08:43 AM
  5. Getting the list of directory names into a file
    By hiddenrider007 in forum Shell scripting
    Replies: 2
    Last Post: 9th April 2008, 09:59 AM

Tags for this Thread

Posting Permissions

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