Operating System - HP-UX
1753848 Members
8340 Online
108807 Solutions
New Discussion юеВ

Re: Configure DNS IP Address on HP-UX Server

 
SOLVED
Go to solution
Suriya Prakash
Regular Advisor

Configure DNS IP Address on HP-UX Server

We are using HP-UX v11.31.
I want to access internet from this server. for that i need to configure DNS IP address on this server.
We dont have any DNS server.
Normally we use internet in windows PC by configuring DNS IP address given by sify(ISP) on preffered and alternate dns column on tcp/ip protocol.
I have a DNS IP address provide by sify.
I want to configure it on unix server to access the internet.
Pls help me in this regard.
Thanks in advance.
18 REPLIES 18
Michal Kapalka (mikap)
Honored Contributor
Solution

Re: Configure DNS IP Address on HP-UX Server

hi,

create a /etc/resolv.conf file and add this entries :

nameserver IP_adress_of_your_ISP_DNS_server

mikap
Suriya Prakash
Regular Advisor

Re: Configure DNS IP Address on HP-UX Server

I add the entry in /etc/resolv.conf
but i'm not able to even ping the address.
and i also want to know how to configure the proxy server address on unix box.
Aneesh Mohan
Honored Contributor

Re: Configure DNS IP Address on HP-UX Server


>> Not able to ping
Not sure , may be ICMP packets are disabled.

Check it using traceroute
#traceroute DNS IP

Check You can access the default DNS port of your DNS server from you HPUX system
#telnet DNSIP 53

Aneesh
Suriya Prakash
Regular Advisor

Re: Configure DNS IP Address on HP-UX Server

I got the below error msgs while try the commands.

# traceroute 208.67.222.222
traceroute to 208.67.222.222 (208.67.222.222), 30 hops max, 40 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * *


# telnet 208.67.222.222 53
Trying...
telnet: Unable to connect to remote host: Connection refused
Michal Kapalka (mikap)
Honored Contributor

Re: Configure DNS IP Address on HP-UX Server

hi,

check if you have defined the /etc/nsswitch.conf

and if you have default route defined, on your servers.

netstat -nr


mikap
Suriya Prakash
Regular Advisor

Re: Configure DNS IP Address on HP-UX Server

Hi,

Thanks for response

Pls check the below results

# cat /etc/nsswitch.conf
cat: Cannot open /etc/nsswitch.conf: No such file or directory

# netstat -nr
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 32808
100.100.100.2 100.100.100.2 UH 0 lan1 32808
172.23.9.12 172.23.9.12 UH 0 lan0:1 32808
172.23.9.2 172.23.9.2 UH 0 lan0 32808
172.23.9.0 172.23.9.2 U 3 lan0 1500
172.23.9.0 172.23.9.12 U 3 lan0:1 1500
100.100.100.0 100.100.100.2 U 2 lan1 1500
127.0.0.0 127.0.0.1 U 0 lo0 32808
default 172.23.9.10 UG 0 lan0 1500
#

After configure the dns address on resolv.conf, my telnet session opens very slowly. it takes around 2 mins to open the session. if i delete the entry it opens at the second.
Michal Kapalka (mikap)
Honored Contributor

Re: Configure DNS IP Address on HP-UX Server

hi,

thats normal, because your server try to resolve your, remote computer.

add the client from that you are telneting to the /etc/hosts ( for testing )

IP_client name alias1 alias2 FDQN

for example.

mikap
Suriya Prakash
Regular Advisor

Re: Configure DNS IP Address on HP-UX Server

Hi,

I'm not getting you.

What to add in etc/hosts file.

Suriya
Aneesh Mohan
Honored Contributor

Re: Configure DNS IP Address on HP-UX Server

Hi ,

You dont have network access to your DNS server 208.67.222.222.

Check with you Network Administrator.

You can remove nameserver entries in /etc/resolv.conf now or /etc/resolv.conf file itself, since you cannot use your nameserver

Aneesh