- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Name resolution problem from DNS server
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
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
тАО02-21-2009 06:40 AM
тАО02-21-2009 06:40 AM
Name resolution problem from DNS server
Facing name resolution problem in my hp unix 11.11 server. By this name resolution problem i am not able to connect HP openview Backup manager. Pls suggest to solve the issue. we are having Windows DNS Server and we added the entries in hosts file.
Regards
Trilok
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2009 07:08 AM
тАО02-21-2009 07:08 AM
Re: Name resolution problem from DNS server
cp /etc/nsswitch.files /etc/nsswitch.conf
Change the hosts line and add ipdnodes like this:
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
ipnodes: files [NOTFOUND=return] dns
Now your /etc/hosts file will be used first, then DNS. Now the above steps would not be needed if your DNS server was properly configured. Many Windows-based DNS servers never add the reverse lookup record which is needed for proper network security.
To verify how each hostname is found, use the nsquery command:
nsquery hosts simeHostname
nsquery hosts 12.34.56.78
The first form searches for the hostname, while the second does a reverse name lookup. Both forms must resolve correctly.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2009 07:35 AM
тАО02-21-2009 07:35 AM
Re: Name resolution problem from DNS server
Before that hp openview is working fine, form last few days we getting the error message "NO VALID HOSTNAME FOUND" No changes done in server side.
Can u suggest how to solve the issue without using DNS.
There is no nsswitch.conf file in /etc folder
Hostname is asterix, Hp openview cell manager name is asterix.testcorp.com. HP openview is not resolving the name asterix.testcorp.com
when i try nslookup with hostname and ip address it is replaying back.
root:asterix:/etc>nslookup 192.168.70.125
*** Can't find server name for address 192.168.70.90: Non-existent domain
Name Server: alpha.testcorp.com
Address: 192.168.70.50
Trying DNS
Name: asterix.testcorp.com
Address: 192.168.70.125
root:asterix:/etc>nslookup asterix.testcorp.com
*** Can't find server name for address 192.168.70.90: Non-existent domain
Name Server: alpha.testcorp.com
Address: 192.168.70.50
Trying DNS
Name: asterix.testcorp.com
Address: 192.168.70.125
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2009 08:42 AM
тАО02-21-2009 08:42 AM
Re: Name resolution problem from DNS server
root:asterix:/etc>nslookup asterix.testcorp.com
*** Can't find server name for address 192.168.70.90: Non-existent domain
Name Server: alpha.testcorp.com
Address: 192.168.70.50
Trying DNS
Name: asterix.testcorp.com
Address: 192.168.70.125 <<==
The resolution is successful via DNS.
You could add the same IP address to hostname in /etc/hosts for faster name resolution
192.168.70.50 asterix.testcorp.com asterix
Also have the nsswitch.conf as stated above, which I believe you would have already done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2009 08:59 AM
тАО02-21-2009 08:59 AM
Re: Name resolution problem from DNS server
I had already added the hostname in /etc/hosts
# 192.168.70.125 asterix
# 192.168.70.125 asterix.testcorp.com
192.168.70.125 asterix asterix.testcorp.com
# 192.168.70.125 asterix asterix.test.com
You mention that i have to add the entry as 192.168.70.50 asterix.testcorp.com asterix.
The asterix server ip address is 192.168.70.125, DNS server ip address 192.168.70.50. Which ip address i have to add in hosts file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2009 10:45 AM
тАО02-21-2009 10:45 AM
Re: Name resolution problem from DNS server
For the backup manager to work via DNS, all hostnames must be correct in the DNS server. If you don't have control of that and follow Bill's steps then you can only impact the configuration of the local system.
The HP openview backup system, if not the same host is going to need this information as well.
You may need to consult the openview documentation to see if this configuration is supported.
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
тАО02-21-2009 04:29 PM
тАО02-21-2009 04:29 PM
Re: Name resolution problem from DNS server
IF DNS is configured the system uses DNS
if dns is not configured as well as NIS then the system uses the /etc/hosts file
if possible you want to have the local hosts file with a full hostname and a short hostname of the local box and all other boxes it directly works with.
15.15.15.9 host1.abc.net host1
Now if you want to you can use the /etc/host file for resolution first and then use DNS if the /etc/hosts file does not have the IP. THis makes your system quite efficient with hostname lookups.
the file that does that is /etc/nsswitch.conf
IN that file put a entry like
hosts: files [ NOTFOUND=CONTINUE ] dns
This entry will say to use /etc/hosts first then failover to dns. the nsswitch file is the only situation where hostname resolution does a failover.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2009 07:18 PM
тАО02-21-2009 07:18 PM
Re: Name resolution problem from DNS server
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2009 02:18 AM
тАО02-22-2009 02:18 AM
Re: Name resolution problem from DNS server
HP openview package is working fine upto last week, from last week we are getting error message "No valid hostname found". Hp openview is running in same server. We checked with HP openview team, they confirmed that HP openview services are up and running only problem with name resolution in server.
When i try to modify the entries in resolv.conf file, unable to save, its a read only file.
Any one pls suggest how to resolve the name resolution. I need Hp openview packup to look for asterix.testcorp.com.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2009 02:32 AM
тАО02-22-2009 02:32 AM
Re: Name resolution problem from DNS server
check the permissions of /etc/resolv.conf
#ll /etc/resolv.conf
#ll /etc/nsswitch.conf
please post also
#cat /etc/resolv.conf
#cat /etc/nsswitch.conf
#cat /etc/hosts
#netstat -nr
#ping
#ping
#traceroute
#traceruote
just do an nslookup and see which DNS server it chooses for Name Resoltion.
regards
sujit