- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: help needed to setup resolv.conf
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 11:17 AM
01-09-2002 11:17 AM
i have 2 servers lets name it A and B both are connected to internet thru lan. but i can not browse the internet on them as DNS is not setup.
i added resolv.conf on server A with only nameserver entry. nothing else like search/domain etc...
now if i try to ping/telnet B from A i get host unknown error.
B's /etc/hosts as entry for A
how do i override /etc/hosts on resolv.conf
i tried LOCALDOMAIN does not work.
all u experts out there any solution....
thankx in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 11:25 AM
01-09-2002 11:25 AM
Solutionresolv.conf will be something like this
domain xxx.companydomain.com
search xxx.companydomain.com companydomain.com
nameserver zzz.yyy.xxx.ttt
nameserver ---
now for host lookup you have to change your nsswitch.conf to look at DNS. edit the line for hosts in /etc/nsswitch.conf like this
hosts: dns[NOTFOUND=continue] files[NOTFOUND=return]
now hosts lookup will first try DNS, if hosts name is not resolved than it will try files (/etc/hosts)
regards
Ajay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 11:25 AM
01-09-2002 11:25 AM
Re: help needed to setup resolv.conf
you should check /etc/nsswitch/conf. It should contain something like:
hosts: dns files
or
hosts: files dns
depends if you want to give priority to dns or to /etc/hosts.
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 11:26 AM
01-09-2002 11:26 AM
Re: help needed to setup resolv.conf
Try this link from hp docs site on how to set up the resolver,
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90685/B2355-90685_top.html&con=/hpux/onlinedocs/B2355-90685/00/00/26-con.html&toc=/hpux/onlinedocs/B2355-90685/00/00/26-toc.html&searchterms=resolv.conf&queryid=20020109-113052
This link is from this doc,
http://docs.hp.com/hpux/onlinedocs/B2355-90685/B2355-90685.html
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 11:28 AM
01-09-2002 11:28 AM
Re: help needed to setup resolv.conf
The nsswitch.conf controls how the hosts lookup behaves.
Here are examples of my nsswitch.conf and resolv.conf files:
# cat /etc/nsswitch.conf
hosts: files [NOTFOUND=continue] dns
# cat /etc/resolv.conf
domain upr.com
search upr.com houston1.anadarko.com anadarko.com
nameserver 144.94.68.3
nameserver 172.30.0.177
nameserver 172.30.0.176
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 11:33 AM
01-09-2002 11:33 AM
Re: help needed to setup resolv.conf
it all worked out thankx a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 11:35 AM
01-09-2002 11:35 AM
Re: help needed to setup resolv.conf
1. /etc/resolv.conf file contains following information
Domain Name : Company's domain name.
Name Server : DNS server name or IP adress
Search : Sear list for hostname lookup
Refer RFS 1535 for more details in /usr/share/doc
Also man resolv.conf would be a help.
2. /etc/nsswitch.conf is the configuaration file for named service
It directs many files to look for informations in a given order.
EX for hosts look for /etc/hosts (files) if not look for DNS and so forth..
Ex:
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=return UNAVAIL=continue T
RYAGAIN=return]
netgroup: files [NOTFOUND=return UNAVAIL=return]
networks: files [NOTFOUND=return UNAVAIL=return]
passwd: files [NOTFOUND=return UNAVAIL=return]
-USA..