El 4/11/19, Ramses <ramses.sevi...@gmail.com> escribió: > Hola a tod@s, > > Yo tenía entendido que en Linux, tener varios DNS en /etc/resolv.conf > funcionaba de la siguiente forma. Por ejemplo, en el /etc/resolv.conf lo > siguiente: > > nameserver 1.1.1.1 > nameserver 2.2.2.2 > nameserver 3.3.3.3 > > Pensé que si buscamos una máquina "maquina.pruebas.org": > > - La buscaba en el /etc/hosts > - Si no la encontraba, la buscaba en el 1.1.1.1 > - Si no la encontraba, la buscaba en el 2.2.2.2 > - Si no la encontraba, la buscaba en el 3.3.3.3 > - Y si tampo la encontraba, daba el error de que no existe esa máquina. > > Al contrario que hace Windows, que mientras que esté vivo el primero de los > DNS, no busca en el siguiente si no existe la máquina en este primer > Servidor DNS. > > ¿Estoy equivocado con esta creencia mía?
En windows no tengo la más mínima idea... en sistema linux, el man de resolv.conf te da la respuesta que buscas: "nameserver Name server IP address Internet address of a name server that the resolver should query, either an IPv4 address (in dot notation), or an IPv6 address in colon (and possibly dot) notation as per RFC 2373. Up to MAXNS (currently 3, see <resolv.h>) name servers may be listed, one per keyword. If there are multiple servers, the resolver library queries them in the order listed. If no nameserver entries are present, the default is to use the name server on the local machine. (The algorithm used is to try a name server, and if the query times out, try the next, until out of name servers, then repeat trying all the name servers until a maximum number of retries are made.)" Nótese el "If there are multiple servers, the resolver library queries them in the order listed." Sin más. -- ********************************************** Hector Colina. Linux counter id 131637 Debian user, aka e1th0r Mérida-Venezuela http://colina.net.ve Key fingerprint = E81B 8228 8919 EE27 85B7 A59B 357F 81F5 5CFC B481 LA REVOLUCIÓN NO SE HACE UNICAMENTE CON LAS ARMAS