nslookup/ping resolve problem 11i v3


 
Thread Tools Search this Thread
Operating Systems HP-UX nslookup/ping resolve problem 11i v3
# 1  
Old 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.
# 2  
Old 01-03-2012
check with hp's documentation on what changed networkwise between 11.23 and 11.31 ... if nothing changed, confirm that all the required software installed properly during the build ... if possible, do a test build on another machine with the same exact specs to replicate issue ... if still a problem, contact hp support ...

good luck!
# 3  
Old 01-03-2012
OK I fixed the problem but I'm not exactly sure what fixed it. I went into SMH and removed all references to NIS in the Name Service Switch configuration screen. After rebooting, somehow this fixed the problem. I tried listing files by date to see what changed and nsswitch.conf was the only file. The line for files is identical to what I had put in there but somehow SMH's version was better. Earlier, I thought perhaps I had some weird character in the file that wasn't showing up in VI so I tried recreating it by hand and copying it from another server that did work but was not successful. Yet, somehow, SMH was able to fix it. Go figure.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Nslookup working but ping not working at windows client

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

2. Solaris

my sun solaris 10 cannot ping and nslookup other server using hostname.

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

3. Solaris

Ping problem???

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

4. Shell Programming and Scripting

Scripting nslookup to resolve multiple hostnames

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

5. Shell Programming and Scripting

please resolve the below problem

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

6. Solaris

Ping Problem

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

7. IP Networking

Ping Problem

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

8. UNIX for Advanced & Expert Users

nslookup problem

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

9. Solaris

I am too young not to be able to resolve myself...nslookup problem (no DNS available)

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

10. UNIX for Dummies Questions & Answers

ping problem

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
Login or Register to Ask a Question