DNS Lookup seems to be failing

From: David Rieger (drieger@olac.berkeley.edu)
Date: Wed Aug 06 2003 - 15:24:28 EDT


I have a Sun Solaris 2.7 box that has abysmal response times for
web-services. I perform a netstat as well as a netstat -r and it takes a
good amount of time for these commands to execute indicating to me the DNS
lookup is failing (at least that is what is indicated through Sunmanager
archives). I have gone backward and forward over the following files (and
compare them between a functioning box and the slow one in this message):

/etc/defaultrouter
/etc/defaultdomain
/etc/hosts
/etc/nsswitch.conf
/etc/resolv.conf

I also executed a netstat -rn (this responded in a normal fashion although
the output is different between the two boxes). I've compared these files
and the netstat -rn command between a normal functioning box (a box that
carries my sub-domain name) and my poorly performing one and I cannot see a
difference except in my netstat -rn command which seems to be missing that
default gateway (but I've edited the /etc/defaultrouter and restarted inetd
so am at a loss).

Perhaps my eyes are failing me but I am hoping somebody would be kind
enough to examine the pasted output of these files and tell me if they can
see where I'm lacking in Adminstration skills?

#####################
Files and output from server that works (olac):
######################

#############
DefaultRouter:
#############
128.32.254.1

#################
DefaultDomain:
##################
berkeley.edu

################
/etc/hosts:
#################

#
# Internet host table
#
127.0.0.1 localhost
128.32.254.7 olac olac.berkeley.edu
128.32.254.124 flare flare.olac.berkeley.edu
128.32.254.3 arc arc.olac.berkeley.edu
128.32.254.16 corona corona.olac.berkeley.edu

################
/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.

# Uncomment 'nds' in passwd/group entries to enable Novell Directory Service
# (NDS) users/groups. To enable cacheing, restart 'nscd' after this
passwd: files # nds
group: files # nds
hosts: files dns
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
sendmailvars: files

##########################
/etc/resolv.conf:
#############################
domain berkeley.edu

nameserver 128.32.136.9
nameserver 128.32.206.12
nameserver 128.32.136.12

search olac.berkeley.edu berkeley.edu
###########################
netstat -rn output:
############################

Routing Table:
   Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
128.32.254.0 128.32.254.7 U 3 67 hme0
224.0.0.0 128.32.254.7 U 3 0 hme0
default 128.32.254.1 UG 0 389
127.0.0.1 127.0.0.1 UH 0 34129 lo0

#############################
####EOF######################
#############################

SERVER THAT DOESN'T WORK:

####################
DefaultRouter:
####################
128.32.254.1

####################
DefaultDomain:
####################
berkeley.edu

######################
/etc/hosts file:
######################
#
# Internet host table
#
127.0.0.1 localhost
128.32.254.124 flare flare.olac.berkeley.edu
128.32.254.7 olac olac.berkeley.edu
128.32.254.3 arc
128.32.254.16 corona corona.olac.berkeley.edu

####################
/etc/nsswitch.conf file:
###################

# /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 dns
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
sendmailvars: files

################
/etc/resolv.conf file:
#################

domain olac.berkeley.edu
nameserver 128.32.136.9
nameserver 128.32.206.12
nameserver 128.32.136.12

search olac.berkeley.edu berkeley.edu

##################
netstat -rn output:
##################

Routing Table:
   Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
128.32.254.0 128.32.254.124 U 3 34 hme0
224.0.0.0 128.32.254.124 U 3 0 hme0
127.0.0.1 127.0.0.1 UH 0 446 lo0
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:53 EDT