Sponsored Content
Operating Systems HP-UX nslookup/ping resolve problem 11i v3 Post 302586868 by keelba on Tuesday 3rd of January 2012 02:54:50 PM
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.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

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

8. 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

9. 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

10. 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
nsquery(1)						      General Commands Manual							nsquery(1)

Name
       nsquery - name server query command

Syntax
       /usr/ucb/nsquery [ lookup ] [ host ] [ server ]

Description
       The command provides an interface to obtain host name and address information.

       If  you	specify  host,	the command obtains information about the specified host. If no host is specified, the command obtains information
       about the local host system.

       If you specify server, the command queries the BIND server that you specify. If you do not  specify  a  server,	the  command  queries  the
       default BIND server.

Options
       lookup  Retrieves the host name, Internet Protocol (IP) address, and aliases of the specified host.  If no host or server is specified, the
	       command obtains information about the local system from the default BIND server.

	       If you do specify the lookup option, the command obtains the information about  the  BIND  server  and  host  specified	(or  their
	       defaults).   If the system from which you issue the command is a BIND server, and you do not specify the lookup option, information
	       about only that server is retrieved.

Files
       Directory containing BIND server data file

       BIND server boot file

       Host database file containing name to address mapping for BIND primary
			   server

       Host database file containing address to name mapping for BIND primary
			   server

       Local host database file containing address to name mapping for BIND
			   server

       BIND server cache file

       BIND data file

See Also
       nslookup(1), resolver(3), resolver(5), named(8)
       Guide to the BIND/Hesiod Service

																	nsquery(1)
All times are GMT -4. The time now is 11:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy