I don't have DNS, and would like to resolve EVERYTHING through local /etc/hosts file.
My first sunbox has the following configuration:
# hostname
mybox.home.com
My host file is as follows:
# cat /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
192.25.x.x mybox.home.com mybox loghost
ifconfig is correct, and ping works:
# ping mybox.home.com
mybox.home.com is alive
I don't have a resolve file:
# ls /etc/res*
/etc/res*: No such file or directory
my nsswitch.conf looks like the following (no DNS):
# cat /etc/nsswitch.conf
#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
passwd: files
group: files
hosts: files
ipnodes: files
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files
automount: files
aliases: files
services: files
printers: user files
auth_attr: files
prof_attr: files
project: files
yet I can't even resolve the box itself?
# nslookup mybox.home.com
;; connection timed out; no servers could be reached
# host 192.25.x.x
;; connection timed out; no servers could be reached
# nslookup 192.25.x.x
;; connection timed out; no servers could be reached
what am I missing?
manny