01-03-2012
nslookup/ping resolve problem 11i v3
I am having a problem with a new server build that has got me completely baffled. This server has a private back end network so the way it is supposed to work is that the server thinks its ip address is 10.131.0.48 but the rest of the world knows it as 199.68.100.100 per DNS. It has to be this way for the application to install.
The problem is that nslookup from this server shows that it is using files correctly and resolves to the 10. address as it should. But when I try to ping by hostname from this same server it pings the 199. address. We have other HP-UX servers set up exactly this same way and they work as expected but they are running 11.23. This new server is 11.31. I am guessing that has something to do with it but I cannot figure out what.
root@sho1hsmbk001:/root> grep sho1hsmbk001 /etc/hosts
10.131.0.48 sho1hsmbk001.xxxxxxxxxxx.corp sho1hsmbk001 sho1hsmbk001-bk
root@sho1hsmbk001:/root> cat /etc/nsswitch.conf
# /etc/nsswitch.conf:
#
hosts: files dns
passwd: files vas3
group: files vas3
root@sho1hsmbk001:/root> cat /etc/rc.config.d/netconf
HOSTNAME="sho1hsmbk001"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
.
.
.
INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="10.131.0.48"
SUBNET_MASK[0]="255.255.255.0"
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]="0"
INTERFACE_MODULES[0]=""
INTERFACE_SKIP[0]=""
INTERFACE_NAME[1]="lan900"
IP_ADDRESS[1]="199.68.100.100"
SUBNET_MASK[1]="255.255.255.0"
BROADCAST_ADDRESS[1]=""
INTERFACE_STATE[1]=""
DHCP_ENABLE[1]="0"
INTERFACE_MODULES[1]=""
INTERFACE_SKIP[1]=""
.
.
.
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="199.68.100.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
ROUTE_SOURCE[0]=""
ROUTE_SKIP[0]=""
root@sho1hsmbk001:/root> nslookup sho1hsmbk001
Using /etc/hosts on: sho1hsmbk001
looking up FILES
Name: sho1hsmbk001.xxxxxxxx.corp
Address: 10.131.0.48
Aliases: sho1hsmbk001, sho1hsmbk001-bk
root@sho1hsmbk001:/root> ping sho1hsmbk001
PING sho1hsmbk001.ally-hosting.corp: 64 byte packets
64 bytes from 199.68.100.100: icmp_seq=0. time=0. ms
64 bytes from 199.68.100.100: icmp_seq=1. time=0. ms
I thought perhaps it was caching somehow and tried rebooting but it still exhibits the same behavior. If I remove the DNS entry from nsswitch.conf the server can still tries to ping itself on the 199. network. I have the same problem if I try pinging any other servers on the private network. I can nslookup and resolve to the 10. address but when I ping that server it pings the public address.
Anyone have any suggestions?
---------- Post updated at 01:54 PM ---------- Previous update was at 12:41 PM ----------
I've got it narrowed down but I still cannot figure out what is going on. If I remove the domain and search path from resolv.conf then it will resolve to the 10. address.
This I do not understand because nsswitch.conf tells it to look at files so it should never look at resolv.conf in the first place.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I can ping by ip address but not by host name
everything is on the same subnet
check all of the normal files
I can telnet in to the unix box but can not open a connect to
the share dir.
unix ver sunSO 5.9
all the other computers ar Windows XP (with firewall turn off)
Thanks... (1 Reply)
Discussion started by: vviscomi
1 Replies
2. Solaris
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 ... (6 Replies)
Discussion started by: mr_manny
6 Replies
3. UNIX for Advanced & Expert Users
I am having trouble configuring BIND 8.3 on Solaris 9. When I run nslookup, I get this error/message:
test# nslookup
*** Can't find server name for address 192.168.1.31: Non-existent host/domain
*** Default servers are not available
I double checked everything and I can't figure this out. I... (8 Replies)
Discussion started by: xnightcrawl
8 Replies
4. IP Networking
Comp1=192.168.100.2
Comp2=192.168.100.6
both the comp have win2000 Os.
Using Cross cable i have connected back to Back.
When i ping From Comp1 to Comp2 its working fine.
But
When i ping From Comp2 to Comp1 its not working.
I know don't know what went wrong please help me out.... (4 Replies)
Discussion started by: ashokmeti
4 Replies
5. Solaris
Can someone tell me how I can get the following bolded output without having to issue the control C key when a ping is running?
ping -s cca-wl6
PING cca-wl6: 56 data bytes
64 bytes from cca-wl6: icmp_seq=0. time=0.796 ms
64 bytes from cca-wl6: icmp_seq=1. time=0.581 ms
64 bytes from... (5 Replies)
Discussion started by: SkySmart
5 Replies
6. Shell Programming and Scripting
#!/bin/sh
# 'clear'
for i in $(seq -w 15 37)
do
echo $i
echo The content in Z
Z=`wget --dns-timeout=0.001 http://napdweb${i}.eao.abn-iad.ea.com:8000/webcore/test/test.jsp`
echo $Z
A="Connection timed out."
echo The content in A
echo $A
expr "$A" : '..\(...\)'
echo $A
done
... (1 Reply)
Discussion started by: veerumahanthi41
1 Replies
7. Shell Programming and Scripting
Hi Friends,
I have a list of servers with their production names in a file.
I want to know the best way eiter a command or a script that can do the following :-
Append "-bkp" to each hostnames at the end
And run nslookup and make sure I have valid backup IP add assigned to it.
Any... (1 Reply)
Discussion started by: new2prog
1 Replies
8. Solaris
Hi friends,
I am running Solaris 10, which is connected to a DSL router running DHCP. During the installation I chose not to use DHCP and assigned a permanent IP address to solaris machine. I also did not choose any name service as well. The rest of the details are as under.
Solaris Machine
IP... (4 Replies)
Discussion started by: gabam
4 Replies
9. Solaris
hi....
i have sun solaris 10 server, fedora 10, and Windows Server.. i cant ping my sun solaris 10, fedora 10 and Windows Server using hostname (etc: ping winserver.bengkel2.com), but i can ping all using IPV4 and IPV6 address.. can u give some suggestion to solve my problem or some idea to... (3 Replies)
Discussion started by: izuan_7657
3 Replies
10. Red Hat
Hi Team
we have created a DNS server at RHEL6.2 environment in 10.20.203.x/24 network.
Everything is going well on linux client as nslookup, ping by host etc in entire subnet. We are getting problem in windows client as nslookup working as well but not ping. all the firewall is disabled and... (5 Replies)
Discussion started by: boby.kumar
5 Replies
LEARN ABOUT HPUX
define_cached_server
define cached server(1m) define cached server(1m)
NAME
define cached server - Creates knowledge of a server in the local clerk's cache
SYNOPSIS
cdscp define cached server name tower value
ARGUMENTS
A simple name for the cached server. The protocol sequence and network address of the server node. The format is protocol-sequence:net-
work-address. A protocol-sequence is a character string identifying the network protocols used to establish a relationship between a
client and server. There are two choices of protocol sequence, depending on the network address that is supplied in the binding:
ncacn_ip_tcp or ncadg_ip_udp. For the network-address, specify an Internet address using the common Internet address notation. For more
information about this format, see the RPC introduction in the DCE Application Development Reference.
DESCRIPTION
The define cached server command creates knowledge of a server in the local clerk's cache. This command is typically used to manually pro-
vide configuration information to a clerk that cannot automatically configure itself. This is required, for instance, to give the clerk
addressing information about a server across a WAN. Once the clerk knows about one server, it can find other servers through referrals.
Privilege Required
You must have write permission to the clerk.
NOTE
This command is replaced at Revision 1.1 by the dcecp command and may not be provided in future releases of DCE.
EXAMPLES
The following command creates knowledge of the server nrl in the local clerk's cache: cdscp> define cached server nrl tower
ncacn_ip_tcp:16.20.15.25
RELATED INFORMATION
Commands: clear cached server(1m), dump clerk cache(1m), show cached server(1m)
Books: OSF DCE Application Development Reference
define cached server(1m)