How subdomain on named chrooted ?

Discussion in 'Installation/Configuration' started by bobbob, Apr 13, 2012.

  1. bobbob

    bobbob New Member

    Helo everybody,

    I need help to set a subdomain on named chrooted . First ,think is necessary, to insert a new zone in var/named/chroot/etc/named.conf:
    zone "subdomain.domain.ro" {
    type master;
    file "subdomain.domain.ro";
    };
    or is not nessary ?
    Than in /var/named/chroot/var/named/ insert a new file named subdomain.domain.ro with this script :

    subdomain.domain.ro. IN SOA ns1.subdomain.domain.ro. root.localhost. (
    2007121201 ; Serial
    10800 ; Refresh
    3600 ; Retry
    604800 ; Expire
    38400 ; Minimum TTL
    )

    ; servere DNS
    IN NS ns1.subdomain.domain.ro.


    ; MX Records
    IN MX 10 mail.subdomain.domain.ro.

    subdomain.domain.ro. A 77.97.93.210

    ; Hosts
    ns1 IN A 77.97.93.210
    mail IN A 77.97.93.210
    www IN A 77.97.93.210
    IN A 77.97.93.210
    Finaly in /etc/httpd/conf/httpd.conf a new virtualhost

    Is this correct?
     
  2. falko

    falko Super Moderator

    You must create the subdomain record in the domain.ro zone.
     

Share This Page