- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Question about hostname resolve
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
07-31-2008 01:51 AM
07-31-2008 01:51 AM
I found DNS packet in TCP packets, but I don't know which process do this.
I don't have DNS on my server.
/etc/nsswitch.conf
hosts: files[NOTFOUND=continue] dns
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 01:53 AM
07-31-2008 01:53 AM
Re: Question about hostname resolve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 02:28 AM
07-31-2008 02:28 AM
Re: Question about hostname resolve
Add entry in /etc/hosts file
with Hostname and ip address
Regards
Sanjeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 02:33 AM
07-31-2008 02:33 AM
Re: Question about hostname resolve
/etc/nsswitch.conf
hosts: files[NOTFOUND=continue] dns "
But this line looks like you have (continue to DNS)!
Do you have a config in
/etc/resolv.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
07-31-2008 02:36 AM
07-31-2008 02:36 AM
Re: Question about hostname resolve
# nslookup www.hp.com
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
07-31-2008 02:37 AM
07-31-2008 02:37 AM
Re: Question about hostname resolve
or you can point to your existing DNS server by giving entry into /etc/resolv.conf
example (IP=DNS server IP address)
nameserver IP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 02:45 AM
07-31-2008 02:45 AM
Re: Question about hostname resolve
IMHO the answer is in /etc/nsswitch.conf.
A process wants to resolve a hostname that is not in the hosts file.
That's why I wrote about the easy test - you will just see what happens.
# nslookup www.hp.com
Using /etc/hosts on: xyz
looking up FILES
==> Trying DNS <==
...
Aliases: www.hp.com
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
07-31-2008 02:51 AM
07-31-2008 02:51 AM
Re: Question about hostname resolve
If you have no DNS server to work with then nsswitch.conf should not have a configuration that tries to continue to a non-existent DNS server. That will simply slow network operations on your system. Better to simply let /etc/hosts resolve or fail and get an answer back quickly.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 02:57 AM
07-31-2008 02:57 AM
Re: Question about hostname resolve
If other node information is not found in your local /etc/hosts then only resolution process will move to dns as next resort.
So you have two choices as everyone told.
either use /etc/hosts
or
use DNS server to resolve hostname/IP
File: /etc/hosts
File: /etc/resolv.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 05:44 PM
07-31-2008 05:44 PM
Re: Question about hostname resolve
My question is which process ask for DNS resloving.
In the TCP packet, I found some process try to resolve the IP to hostname, but I don't know which process do this.
It seems some system process, because my user application will not do this.
Which system process will try to resolve IP to hostname?
Please give me some example.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 05:47 PM
07-31-2008 05:47 PM
Re: Question about hostname resolve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 06:01 PM
07-31-2008 06:01 PM
SolutionIf you can resolve host names to IP addresses, via tools like nslookup, dig, ping, etc., but your application can not, then you application is designed badly and is not really network aware.
I would talk to the application vendor if this is a purchased app. If this is an in-house developed app, then the developers need to go back a look at their code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 06:03 PM
07-31-2008 06:03 PM
Re: Question about hostname resolve
Processes started by inetd (telnet, ftp, remsh, rcp, etc.) are network aware and have code built in (or probably more accurately call libraries) that does the network name / IP address lookup.