here are a few SLES11SP4 systems. They run as a semi closed test structure.
Semi closed as far as they has no records in the DNS. The systems use the
/etc/hosts to resolve hostnames / FQDN in IP-Addresses.
It is possible to ping from one of theses test systems to another host of
these structure, even I can use telnet to connect a service (e.g.
postgresql) at another of these hosts.
But nslookup and dig asks only the DNS-Server and do not read the
/etc/hosts. As far as I remember in the early years there was a possibility
to overwrite the DNS with local entries in the /etc/hosts?!
Hi
Via /etc/nsswitch.conf file via hosts and networks lines should sort it
out.
–
Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 SP1|GNOME 3.10.4|3.12.53-60.30-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
malcolmlewis wrote on Mittwoch, 13. April 2016 13:31 in
suse.support.server.configure-administer :
[color=blue]
Hi
Via /etc/nsswitch.conf file via hosts and networks lines should sort it
out.
[/color]
Hi Malcom,
thx. The nsswitch.conf shows ‘hosts: files dns’ and ping, etc. used it. But
nslookup and dig seems not to use the libc to resolve hostnamens so they can
not anwer with the IP-Address. … modern times
jmozdzen wrote on Freitag, 15. April 2016 14:54 in
suse.support.server.configure-administer :
[color=blue]
Hi Bernd,
[color=green]
But
nslookup and dig seems not to use the libc to resolve hostnamens so[/color]
they can[color=green]
not anwer with the IP-Address. … modern times ;-)[/color]
well, those two tools are designed to be DNS clients, so they’ll always
go the DNS route.[/color]
So it ended up, with an new bind for this zone on one of the servers in the
test environment and comment out the entrys in the hosts file.