Ghost DNS Lookup Puzzle on NIS Clients Ghost DNS lookup rompecabezas en los clientes de NIS
I faced an extremely weird problem of ghost DNS lookups on machines configured as NFS clients. Me hacían frente a un problema extremadamente raro fantasma de búsquedas DNS en máquinas configuradas como clientes NFS. It took quite an effort to solve it. Tomó todo un esfuerzo para solucionarlo. Here are the details. Aquí están los detalles.
Configuration Configuración
I have a machine configured as NFS & NIS server, named database. Tengo una máquina configurada como NFS y NIS servidor, nombre base de datos. There is another machine (named internet) configured as caching DNS server and also to provide DNS resolution for local machines. Hay otra máquina (llamada internet) configurado como servidor caché de DNS y también para proporcionar la resolución DNS para las máquinas locales. All NIS (& NFS) clients have been configured with static IP and DNS server set in resolv.conf Todos los NIS (& NFS) los clientes se han configurado con IP estática y un servidor DNS en resolv.conf conjunto
Problem Problema
On the machines configured as NIS client, I could resolve host names properly with the DNS servers specified in resolv.conf. En las máquinas configurado como cliente NIS, yo podría resolver nombres de host correctamente con los servidores DNS se especifica en el resolv.conf. Unfortunately I couldn’t resolve the hostname properly for database (NFS & NIS server) machine. Por desgracia no he podido resolver correctamente el nombre del host para la base de datos (NFS y NIS servidor) máquina. It always resolved to an apparently harcoded IP address of guide.opendns.com. Siempre resuelto a una aparentemente harcoded dirección IP de guide.opendns.com. I restarted the NIS server as well as the client machines, without any benefit. I reiniciar el servidor NIS, así como los equipos cliente, sin ningún tipo de beneficio. I also searched for the IP address as well as the hostname in both the server and the client machine without success. Yo también han buscado la dirección IP así como el nombre del host en el servidor y la máquina cliente sin éxito.
The second issue was even more bizarre. La segunda cuestión es aún más extraño. The NIS client machines were properly resolving hostnames like yahoo.com or google.com even when the nameserver was commented out in resolv.conf! El cliente NIS máquinas estaban debidamente la resolución de nombres de host como yahoo.com o google.com, incluso cuando el servidor de nombres se comentó en el resolv.conf! I ensured that the names were not in cache or in hosts file. I asegurarse de que los nombres no se encontraban en la caché o en el archivo hosts.
Explanation & Solution Explicaciones y Soluciones
The NIS clients can resolve names through NIS server. Los clientes NIS puede resolver los nombres a través de un servidor NIS. I couldn’t find this documented anywhere. No he podido encontrar esta documentado en cualquier lugar. I derived at this conclusion by experimentation. I derivados a esta conclusión por la experimentación. So even if your DNS server is commented out in resolv.conf, it still can resolve using NIS server. Así que incluso si el servidor DNS es comentada en resolv.conf, que todavía puede resolver usando un servidor NIS.
Secondly the NIS server caches the IP address of itself along with the hostname. En segundo lugar, el servidor NIS escondites de la dirección IP del mismo junto con el nombre de host. This cached information gets preference in NIS clients even over DNS lookups. Esta información llega caché preferencia a los clientes de NIS incluso más búsquedas DNS.
The solution is to the following (again) on NIS server to regenerate the cache: La solución a este problema es el siguiente (de nuevo) en un servidor NIS para regenerar el cache:
/usr/lib/yp/ypinit -m / usr / lib / yp / ypinit-m
PS. In the next article I will talk about a BIG security hole in NIS which has persisted over several years. En el próximo artículo voy a hablar de un gran agujero de seguridad en NIS que ha persistido durante varios años. Finally I will disclose it. Por último voy a revelar.
Filed under Filed under Computer Security Seguridad informática , Enterprise Software Enterprise Software , Fedora Core 6 Fedora Core 6 , Headline News Headline News , How To Cómo , Linux , Open Source Software Open Source Software , Tech Note Nota técnica | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | este artículo |
Email this Article Enviar artículo
You may also like to read También puede leer |



