They are tried in sequence if the first fails to talk to a server at all, not if a record isn't found. What you need is to have your internal DNS forward lookups to the external DNS that are not handled by the internal.
C On Mar 1, 2012 8:12 AM, "Gerhardus Geldenhuis" < gerhardus.geldenh...@gmail.com> wrote: > Hi > I have a freshly build rhel5u7 server from the DVD not updated. > > It has two interfaces: > > DEVICE=eth0 > ONBOOT=yes > HWADDR=00:0C:29:6B:78:6C > TYPE=Ethernet > BOOTPROTO=static > IPADDR=10.10.10.102 > NETMASK=255.255.255.0 > DNS1=10.10.10.4 > DNS2=192.168.9.1 > > and > > DEVICE=eth1 > ONBOOT=yes > HWADDR=00:0C:29:6B:78:76 > TYPE=Ethernet > BOOTPROTO=dhcp > DNS1=10.10.10.4 > DNS2=192.168.9.1 > PEERDNS=no > > I have a custom /etc/resolv.conf > search example.com > nameserver 10.10.10.4 > nameserver 192.168.9.1 > > If I run the command > host myserver.example.com I get > Host myserver.example.com not found: 3(NXDOMAIN) > > However if I disable the second name server (192.168.9.1) it works. > > Now to explain the 10.10.10.4 server is my own dns server and the > 192.168.9.1 server is the dns server for all external dns lookups. > > The docs says nameserver entries in /etc/resolv get tried sequentially but > it does not seem to happen for me. > > I did a strace but I could not see anything significantly different > between the two lookups with different /etc/resolv.conf files. > > I would appreciate anyone shedding any light on the problem. > > ipv6 is disabled > > Regards > -- > Gerhardus Geldenhuis > > _______________________________________________ > rhelv5-list mailing list > rhelv5-list@redhat.com > https://www.redhat.com/mailman/listinfo/rhelv5-list > >
_______________________________________________ rhelv5-list mailing list rhelv5-list@redhat.com https://www.redhat.com/mailman/listinfo/rhelv5-list