- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- updating /etc/hosts
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
Discussions
Discussions
Discussions
Forums
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
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
тАО06-12-2008 08:04 PM
тАО06-12-2008 08:04 PM
updating /etc/hosts
If i add a host-IP in /etc/hosts file, and if i try to to ping the host_name immediately, then the resolving host-name_to_IP is not happening.
I believe, in-order to changes will effect, we need to restart the resolver, what is the right command to restart the resolver ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 08:34 PM
тАО06-12-2008 08:34 PM
Re: updating /etc/hosts
regards,
sandy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 08:35 PM
тАО06-12-2008 08:35 PM
Re: updating /etc/hosts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 09:02 PM
тАО06-12-2008 09:02 PM
Re: updating /etc/hosts
Post your /etc/hosts entries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 09:12 PM
тАО06-12-2008 09:12 PM
Re: updating /etc/hosts
It should ping, No, the change takes effect immediately.
see the Example /etc/hosts
The following /etc/hosts entry contains an IP address, hostname, and alias names (host3.site2.region4 and grace).
#cat /etc/hosts
192.6.1.1 host3 host3.site2.region4 grace
Regards,
Asif Sharif
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 09:24 PM
тАО06-12-2008 09:24 PM
Re: updating /etc/hosts
see
http://docs.hp.com/en/B3921-60631/nsswitch.conf.4.html
/etc/nsswitch.conf
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 09:30 PM
тАО06-12-2008 09:30 PM
Re: updating /etc/hosts
The host which i have added into the /etc/hosts file is also having any entry in the DNS.
If i remove the DNS server in /etc/resolv.conf, then it is pinging.
Now i am facing another problem.
Whenever i rebooted the box, the DNS server is automatically adding into /etc/resolv.conf , even though i explicitly removed the DNS server entry in /etc/resolv.conf file.
How to solve this issue ?
I don't want my system to use DNS server for resolving. But i can't remove /etc/resolv.conf file because my application needs the domain name and it will check /etc/resolv.conf for domain name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 09:36 PM
тАО06-12-2008 09:36 PM
Re: updating /etc/hosts
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 09:45 PM
тАО06-12-2008 09:45 PM