Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: dns servers galore

  1. #1
    Join Date
    Aug 2008
    Location
    Victoria, BC Canada
    Beans
    1,594

    dns servers galore

    I am familiar with BIND but mostly via webmin.

    Is there any shell script I can use to call to add a new A record, CNAME record and MX record to bin in a way that it is smart enough to increment versions and create if not known

    also operating like a public DNS, such Google's 8.8.8.8 and 8.8.4.4

    I am aware that SAMBA can deal with Windows clients fine

    if I need a database MySQL can be installed etc as needed
    Last edited by Vegan; July 10th, 2013 at 04:49 PM.
    SERVER: Azure datacenters, Hyper-V

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: dns servers galore

    You might need to write something up and pass on whatever arguments you want to add. I don't use BIND, but that shouldn't be too difficult as everything is stored in flat files.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3

  4. #4
    Join Date
    Aug 2008
    Location
    Victoria, BC Canada
    Beans
    1,594

    Re: dns servers galore

    what I wanted to do was use a simply web form, with one box for the domain.net and the other for the IP address

    so I when I post I wanted to insert the domain and ip address into the DNS

    I can use a shell script but I also have PHP available
    SERVER: Azure datacenters, Hyper-V

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

    Re: dns servers galore

    Quote Originally Posted by Vegan View Post
    what I wanted to do was use a simply web form, with one box for the domain.net and the other for the IP address
    Just a warning that you will need to configure permissions for the zone files carefully if you take this approach. The Apache server is running as user www-data which has no permissions to write to /etc/bind9/.

    Any domain will need more than a single IP address, unless they all share the same NS and MX servers. Plus you'll need to handle multiple hostnames within the domain. You'll also need to add an entry for the domain to named.conf, and you'll have to update the backup DNS server's named.conf as well. Since the backup should be on another server, preferably in a different geographic location, you'll have to run some kind of background task to update the backup's named.conf.

    Frankly, I think it is easier simply to clone existing zone files and edit them as needed. I once thought about designing a PHP app for the task and decided it was overkill.
    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

  6. #6
    Join Date
    Aug 2008
    Location
    Victoria, BC Canada
    Beans
    1,594

    Re: dns servers galore

    the way I see DNS is to have one primary DNS server and the rest are slaves

    besides LAMP+BIND what other packages will be needed for a MX server

    usually a shell script is what I have found to be useful

    Webmin can do some of the work manually, but I wanted to see if I could mechanize the whole show
    SERVER: Azure datacenters, Hyper-V

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

    Re: dns servers galore

    Quote Originally Posted by Vegan View Post
    besides LAMP+BIND what other packages will be needed for a MX server
    Postfix or an equivalent MTA like sendmail or exim to handle exchanges with other servers. If the server also will store the users' mailboxes, then a POP/IMAP server like dovecot will be required as well.

    However I would recommend you look into MailScanner which can manage all the virus and spam scanning for you. In conjunction with ClamAV and SpamAssassin, it will make a big dent in the amount of junk you will receive and protect your users from malware.

    Remember, on most mail servers, for every legitimate piece of email you receive, you'll get nine pieces of junk.
    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

  8. #8
    Join Date
    Aug 2008
    Location
    Victoria, BC Canada
    Beans
    1,594

    Re: dns servers galore

    I downloaded the PDF manual for mailscanner, may as well learn about its use

    I have looked at postfix, but not the others, are all MTAs created equal?

    I have also seen dovecot which seems to be the #1 choice for mailbox service

    SpamAssassin is known to me as well, as is ClamAV, but I am not using a desktop, only the CLI
    SERVER: Azure datacenters, Hyper-V

  9. #9
    Join Date
    Aug 2008
    Location
    Victoria, BC Canada
    Beans
    1,594

    Re: dns servers galore

    I want to also use domain specific email accounts, which will need lots of configuration

    i want to filter out messages from unrecognized hosts etc

    how about a swarm of MTAs riding beside the DNS servers
    SERVER: Azure datacenters, Hyper-V

  10. #10
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: dns servers galore

    Quote Originally Posted by Vegan View Post
    I have looked at postfix, but not the others, are all MTAs created equal?
    I've used Exim and Postfix before and I prefer Postfix, but that might be cuz I'm used to the configuration now.

    Sendmail is also out there, but I have seen it only recommended for experienced people, who know how to secure it properly.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Page 1 of 2 12 LastLast

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
  •