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
resolv.conf(5)							File Formats Manual						    resolv.conf(5)

Name
       resolv.conf - resolver configuration file

Description
       The  resolver  configuration  file, contains information that the resolver routines read the first time they are invoked by a process.  The
       resolver file contains ASCII text and lists the name-value pairs that provide various types of resolver information.

       The file is required if your system is running BIND.  This file must contain the BIND domain name for the local area network.  If your sys-
       tem is a BIND client, this file must also contain nameserver entries.

       There are two entry formats for the file:

       domain binddomain
	      This  line  specifies  the  default  domain to append to local host names.  If no domain entries are present, the domain returned by
	      after the first dot (.) is used.	If the host name does not contain a domain, the root domain is assumed.

       nameserver address
	      In this entry, the address is the IP address, in dot notation, of the BIND server that should be queried to resolve  host  name  and
	      address  information.   You should have at least one name server listed.	Two or more name servers reduces the possibility of inter-
	      rupted BIND service in the event that one of the servers is down.  You can list up to (10) name servers.	If more than one server is
	      listed,  the resolver library queries you to try them in the order listed.  If no name server entries are present, the default is to
	      use the name server on the local machine.

	      The algorithm used is to try a name server, and, if the query times out, to try the next, until out of name servers or the query	is
	      resolved.   The  last step is to repeat trying all the name servers until a maximum number of retries has been made or the query has
	      been resolved.

       The name value pair must appear on a single line, and the keyword or must start each line.

Examples
       The following is an example of a file:
       ;
       ; Data file for a client
       ;
       domain	      cities.us
       nameserver     128.11.22.33
       Lines beginning with a semicolon (;) are comment lines.

Files
See Also
       gethostname(2), resolver(3), named(8)
       Guide to the BIND Service

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