Showing posts with label webmin/virtualmin. Show all posts
Showing posts with label webmin/virtualmin. Show all posts

Monday, October 2, 2017

Fixing webmin configuration file in Debian Stretch

PHP 7.0 configuration files

Others -> PHP Configuration -> Module Config:

/etc/php/7.0/apache2/php.ini=Configuration for mod_php
/etc/php/7.0/cgi/php.ini=Configuration for scripts run via CGI
/etc/php/7.0/cli/php.ini=Configuration for command-line scripts


Wednesday, April 13, 2016

Webmin: Domain Slave in webmin and Domain Master in WHM/CPanel

In WHM/Cpanel server:
  • open file /etc/named.conf and edit
    //allow-transfer    { "none"; };
    allow-transfer { your_public_ip_for_slave_dns; }; 
    • restart your bind/named
    # /scripts/restartsrv_named 
    In Debian Jessie server:
    • Open webmin, Servers -> BIND DNS Server -> Create slave zone
    Zone type : Forward (Names to Adddress)
    Domain name / Network : yourdomain.com
    Record file : Automatic
    Master server : your_debian_ip_address
    Server port : Default
    • Test Zone Transfer
    Testing transfer of slave zone from master_ip_address .... from master_ip_address : Completed OKTest transfer successfully fetched 28 records from at least one nameserver. Actual transfers by BIND should also succeed.
    Now you can add/edit your Domain Slave Server in WHM/CPanel -> Edit DNS Zone. 

    Reference:
    • https://www.debian.org/doc/manuals/network-administrator/ch-bind.html
    • http://serverfault.com/questions/403848/configure-secondary-dns-server-debian

    Monday, March 21, 2016

    Virtualmin creating Sub-Server for Sub-Domain

    These are steps to create Sub-Server for Sub-Domain:
    1. Virtualmin -> Create Virtual Server
    2. Fill Domain name for sub-domain for example subdom.domain.com (domain.com is root domain, change with your root domain) 
    3. In Enabled features check these items:
      1. Setup DNS zone?
      2. Setup website for domain?
      3. Setup SSL website too?
      4. Choose one of these Setup Webalizer for web logs? or Enable AWstats reporting? (optional)
      5. Choose other options depend on your requirement

    Thursday, February 25, 2016

    Virtualmin DNS Server Template for multi domain

    Virtualmin provides default server template that can be used to configure dns during creating of a new Virtual Server. We can change this default to implement our 'style' in dns record. Go to Virtualmin tab, System Settings, and Server Templates. Choose Default Settings, select Bind DNS domain and click Change. This is my custom configuration for dns record:

    1. BIND DNS records for new domains:
      $ttl 38400
      @ IN SOA ns1.${DOM}. hostmaster.${DOM}. (
      1456307163
      10800
      3600
      604800
      38400 )
      ${DOM}. IN A ${IP}
      www.${DOM}. IN A ${IP}
      ftp.${DOM}. IN A ${IP}
      m.${DOM}. IN A ${IP}
      localhost.${DOM}. IN A 127.0.0.1
      webmail.${DOM}. IN A ${IP}
      admin.${DOM}. IN A ${IP}
      mail.${DOM}. IN A ${IP}
      ${DOM}. IN MX 5 mail.${DOM}.
      ${DOM}. IN TXT "v=spf1 a mx a:${DOM} ip4:${IP} ?all"
      ${DOM}. IN NS ns1.${DOM}.
      ${DOM}. IN NS ns2.${DOM}.
      ns1.${DOM}. IN A ${IP}
      ns2.${DOM}. IN A [change-ip-to-your-slave-dns-server]
    2. Use only the records above: checked
    3. Address records for new domains: unchecked all 
    4. Default TTL for DNS records: Use BIND module setting
    5. Add nameserver record for this server -> unchecked
    6. Add sub-domain DNS records to parent domain? No
    7. Master DNS server hostname: Automatic (from system's hostname)
    8. Add SPF DNS record? No
    9. Does SPF record cover all senders? No
    10. Add DMARC DNS record? No 
    11. Additional named.conf directives for new zones: None
    12. Automatically add named.conf directives: also-notify allow-transfer
    13. Create DNSSEC key and sign new domains? No

                            You can check your dns entry using from this site https://ednscomp.isc.org/ednscomp/