Operating System - HP-UX
1833758 Members
2870 Online
110063 Solutions
New Discussion

Is there any way to connect to internet on HP-UX 11iv3 without configure DNS

 
Tan Teck Khim
Occasional Advisor

Is there any way to connect to internet on HP-UX 11iv3 without configure DNS

can hp ux 11i v3 connect to internet without setting DNS ? cuz when i set DNS, my CDE kinda got error and cant login.

i reinstall the operating environment recently.already set the static LAN ip address , DHCP disabled, Gate way and subnet configured.left the DNS blank

i thought that when default gateway and subnet configured, the hp ux box should be able to surf internet ?
4 REPLIES 4
Mohd Rasidi Che Mat
Frequent Advisor

Re: Is there any way to connect to internet on HP-UX 11iv3 without configure DNS

without dns, you need to put ip address to go to a website. example, instead of mail.yahoo.com, you need to put 209.191.92.114. And the links inside the website also wont work.
Bill Hassell
Honored Contributor

Re: Is there any way to connect to internet on HP-UX 11iv3 without configure DNS

Surf? The Internet runs on DNS. Your Xwindows must use the DNS server too but your HP-UX box is unknown to DNS services. Therefore, you must change the default which is to ignore /etc/hosts. Create your nsswitch.conf file with this:

passwd: files
group: files
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
ipnodes: files [NOTFOUND=return] dns
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files
services: files

Once this is created, you should verify that your local IP address can be resolved using nslookup and nsquery:

nslookup yourHostname
nsquery hosts yourHostname

Also verify that the reverse is true:

nslooup 12.34.56.78
nsquery hosts 12.34.56.78

The real problem is Xwindows as it critically depends on networking in order to work and one of the first tasks is to translate the local hostname into an IP address. If this fails, Xwindows will not start. DNS cannot supply your local address so you must look in /etc/hosts first (the above nsswitch.conf file).


Bill Hassell, sysadmin
Tan Teck Khim
Occasional Advisor

Re: Is there any way to connect to internet on HP-UX 11iv3 without configure DNS

ok thanks ... i will try it later
Torsten.
Acclaimed Contributor

Re: Is there any way to connect to internet on HP-UX 11iv3 without configure DNS

>> cuz when i set DNS, my CDE kinda got error and cant login.

You are working on the wrong end - configure DNS but make sure your server looks into /etc/hosts first in order to resolve its own name.

Bills post has all the details, this is your solution!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!