Results 1 to 2 of 2

Thread: adding new domains to BIND

  1. #1
    Join Date
    Nov 2012
    Location
    Great Britain
    Beans
    80

    adding new domains to BIND

    I have a DNS chache/primary server running on my network, it seems to work fine, I can type in its name into my browser and it points to its own apache server, but I want to add another domain for another apache server on the network. (Ultimately I want to achieve virtual hosting on this second machine as well).

    It isn't clear how I add more domains from all the material I've found on the internet, does it need its own zone or not for eg. How can I add another domain and IP to the servers records?

  2. #2
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    8,724
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: adding new domains to BIND

    Yes, you will need another zone file, and a "zone" declaration in named.conf that points to the zone file.

    Code:
    zone "example.com" IN {
         type master;
         file "zone.example.com";
    };
    Make sure you have all the required semicolons; named is very picky about that.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Tags for this Thread

Bookmarks

Posting Permissions

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