How to use nslookup if the machine does not access to any DNS server?
Posted on 2004-08-06
We've a DB server (Oracle) running on a Sun Solaris. This server has no access to any DNS server. The only thinng it has for host names lookup is the file /etc/hosts. Inside the file /etc/nsswitch.conf, there is the line "hosts: dns files" So, a service to lookup
My first question: Is it possible to make nslookup look into the file /etc/hosts for the host name lookup, instead of using a DNS server?
If it is not possible, can I think that the line "host: dns files" inside nsswitch.conf has no effect on nslookup?
If you know some way to make nslookup to use /etc/hosts for host name resolution, please give some help. Any help is appreciated.