<?php

namespace MGModule\DNSManager2\mgLibs\custom\dns\record\type;

class MD extends RecordTypeAbstract {
    /**
     * A <domain-name> which specifies a host which has a mail agent for the domain which should be able to deliver mail for the domain.
     */
    public $madname;
    /**
     * @param string $madname valid domain name
     * @return bool
     */
    public function madnameValidate($madname){
        return filter_var($madname,FILTER_VALIDATE_DOMAIN,FILTER_FLAG_HOSTNAME);
    }
}