Newbie Nameserver Question

Discussion in 'Installation/Configuration' started by jonwatson, Mar 6, 2007.

  1. jonwatson

    jonwatson New Member

    Hi All,

    I've relied upon Zone Edit for my DNS up until now, but I would like custom nameservers now. I would like ns1.mydomain.com and ns2.mydomain.com.

    Can someone tell me how to set up name servers in ISPConfig using small words? I'd also like to have 2 name servers as is required by the RFCs, but I know that creating two on the same server kind of defeats the purpose. I do have two different ISPConfig installation. Can I/Should I create ns1.mydomain.com on one ISPConfig installtion and ns2.mydomain.com on the other?

    These are probably basic questions, but I've never had the occassion to really get into DNS before so some of my basic knowledge is lacking.

    Any help is appreciate!

    Jon
     
  2. jonwatson

    jonwatson New Member

    Actually, I appear to have figured it out.

    The only thing I need to know now is how to enable wildcard DNS within ISPConfig to support WordpressMU.

    Anyone know?

    Thanks!
     
  3. falko

    falko Super Moderator ISPConfig Developer

    Unfortunately ISPConfig doesn't support wildcards. But you can make additions to the zone files and named.conf on the command line. There's a section at the bottom of these files where you can add records, and they won't be overwritten by ISPConfig.
     
  4. jonwatson

    jonwatson New Member

    Strangely, I have it working without making any manual changes to any conf files.

    Here's what I did (ISPConfig 2.2.9):

    1. Create a nameserver:

    ISPConfig -> DNS Manager -> domain.tld -> Records -> New

    I created ns1.domain.tld with my ISPConfig server's IP address

    2. Told my ISPConfig installation to use the nameserver:

    ISPConfig -> Management -> DNS -> Default NS1

    I set it to ns1.domain.tld

    ISPConfig -> Management -> DNS -> Default NS2

    I set it to ns2.domain.tld

    Note that I didn't create ns2.domain.tld yet, but I told ISPConfig to use it anyhow. I will be creating the second nameserver shortly.

    3. Create wildcard DNS record:

    ISPConfig -> DNS Manager -> domain.tld -> Records -> New

    I created a wildcard DNS record by using * for the hostname and my server's IP for the IP address.

    I took that information from another post here in HowTo Forge, but I can't find that post at the moment.

    4. Add some Apache Directives

    ISP Manager -> domain.tld -> Apache Directives (optional). I inserted:

    Code:
    ServerAlias domain.tld *.domain.tld
    I believe this to be WordpressMU specific. If you're implementing wildcard DNS for other reasons, you may not need this Apache Directive.

    5. Point my domain to my nameserver

    I went to Name Cheap (where I registered my domain) and pointed it to ns1.domain.tld.

    48 hours later, all is working perfectly. I admit to messing around a bit getting this working so all of these steps may not be required, but they definitely work.

    Now I just need to create another nameserver on another box in order to be RFC compliant :)
     
    Last edited: Mar 7, 2007
  5. falko

    falko Super Moderator ISPConfig Developer

    Well, maybe ISPConfig supports wildcards, and I simply forgot it... :rolleyes: The software's gotten quite complex over the years.
     
  6. jonwatson

    jonwatson New Member

    Heh,..I bet!

    I've tried a few more blog creations and everything seems to be working well. There are a LOT of people looking for WordpressMU hosting so this could be a pretty big boon to ISPConfig. Like it needs it :)
     

Share This Page