- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can I set up machine where the name lookup fails.
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
10-14-2008 04:26 AM
10-14-2008 04:26 AM
I need to make name lookup(hostname) fail and i can ping the machine in network only by it's IP address.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2008 04:30 AM
10-14-2008 04:30 AM
Re: Can I set up machine where the name lookup fails.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2008 04:35 AM
10-14-2008 04:35 AM
Re: Can I set up machine where the name lookup fails.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2008 04:39 AM
10-14-2008 04:39 AM
Re: Can I set up machine where the name lookup fails.
If you do, then the name will resolve on other machines that use the DNS database.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2008 04:45 AM
10-14-2008 04:45 AM
Re: Can I set up machine where the name lookup fails.
file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2008 04:49 AM
10-14-2008 04:49 AM
Re: Can I set up machine where the name lookup fails.
give here
#cat /etc/resolv.conf
you must have entry of the DNS servers in this file , then comment the entries
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2008 05:00 AM
10-14-2008 05:00 AM
Re: Can I set up machine where the name lookup fails.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2008 05:04 AM
10-14-2008 05:04 AM
Re: Can I set up machine where the name lookup fails.
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2008 05:15 AM
10-14-2008 05:15 AM
Re: Can I set up machine where the name lookup fails.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2008 05:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2008 06:59 AM
10-14-2008 06:59 AM
Re: Can I set up machine where the name lookup fails.
if the are there, they need to be removed.
all of the stuff about resolve.conf and nssswitch only impact the local server's ability to resolve names. you seem to want to not access a specific server by a name (ip only). DNS is providing the name to other systems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2008 07:05 AM
10-14-2008 07:05 AM
Re: Can I set up machine where the name lookup fails.
If host name command fails many softwares won't work.
If you want to disable DNS or hostname lookups :
delete /etc/nsswitch.conf
delete /etc/resolve.conf
remove entry for this host from /etc/hosts
After doing this u wont be able to resole any hostname. IP address will work though.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2008 07:07 AM
10-14-2008 07:07 AM
Re: Can I set up machine where the name lookup fails.
It is not clear of what you need. "hostname" command is nothing to do with name resolution. It will just provide the name of that server.
If you don't want to ping/access any of the other servers by its name from one server, you should disable name resolution servies on that host. You can try the following.
If you have only "files" entry on nsswitch.conf, remove those entries from /etc/hosts.
If you have DNS or NIS entry on nsswitch entry, either you can disable those services or remove the entry from nsswitch.conf.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2008 12:07 AM
10-15-2008 12:07 AM
Re: Can I set up machine where the name lookup fails.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2008 05:11 AM
10-15-2008 05:11 AM
Re: Can I set up machine where the name lookup fails.
http://forums13.itrc.hp.com/service/forums/helptips.do?#33
Have fun!
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
10-16-2008 07:09 AM
10-16-2008 07:09 AM