Operating System - HP-UX
1820262 Members
2881 Online
109622 Solutions
New Discussion юеВ

Package virtual Ip addres problem with dns

 
Rene Mendez_4
Super Advisor

Package virtual Ip addres problem with dns

Please Help

node1
ip lan0: 192.168.1.1 netmask 255.255.255.0
hosts name: node1

node2
ip lan0: 192.168.1.2 netmask 255.255.255.0
hosts name: node2

IP package: 192.168.1.3 netmask 255.255.255.0
resolv hosts: prod

Dns, firewall, windows nfs server, no resolv hostname prod (192.168.1.3)

Client configure the lan ips (192.168.1.1, 192.168.1.2, 192.168.1.3) in dns, firewall, en windows nfs server.

How to configure? or What configure? in hpux hosts to windows resolv IP virtual address and Host address ?
2 REPLIES 2
Julio Yamawaki
Esteemed Contributor

Re: Package virtual Ip addres problem with dns

Hi,

I think you must put your hp-ux boxes in dns too.
Simply configure files:

/etc/resolv.conf with:
domain xxx.xx -> your domain name
nameserver xxx.xxx.xxx.xxx -> your first dns server
nameserver xxx.xxx.xxx.xxx -> your second dns server - if exists

/etc/nsswitch.conf:
in the line: hosts: files, change to:
hosts: files [NOTFOUND=CONTINUE] dns

And test:

nslookup
prod
-> it has to put ip address of prod, of course, you MUST configure this host name and ip address in your dns server and also, server names and ip addresses.

Regards,

Johnny Damtoft
Regular Advisor

Re: Package virtual Ip addres problem with dns

From the HP-UX servers, you must be ablt to make DNS lookup for the "hostname" only.

# nslookup SERVER1
Name Server: a.ns.uxdata.net
Address: 10.10.10.10

Trying DNS
Name: server1.serverlan.uxdata.net
Address: 10.6.11.41
Here i only asked for the hostname.

This is setup like this:
# vi /etc/resolv.conf
domain serverlan.uxdata.net
nameserver 10.10.10.10

#vi /etc/hosts
10.6.11.41 server1.serverlan.uxdata.net server1
10.6.11.42 server2.serverlan.uxdata.net server2
10.6.11.140 cluserver.serverlan.uxdata.net cluserver
127.0.0.1 localhost loopback

You might wanna check:
# man nsswitch.conf


--Johnny