update two DNS servers from DHCP server

0

The idea is that the DHCP server can update two DNS servers according to the hostname of the machines to which they assign an IP, to say if a hostname starts with "sa" it should update the DNS1 server, but if it starts with other letters will update the DNS2

So far I can make dynamic DNS work, which is updated when DHCP assigns an IP address and according to the manual with

if substring(option vendor-class-identifier,0,2)="sa"{
    ddns-domainname  "midominio.com.";
    ddns-rev-domainname "in-addr.arpa.";
}

It could be updated in those areas of the DNS1 server but one does not, besides I have doubts about how to implement the DNS2 server in the DHCP configuration file

    
asked by sutano 27.11.2018 в 09:00
source

0 answers