- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: NTPQ *** can't find localhost
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
тАО05-07-2009 02:18 PM
тАО05-07-2009 02:18 PM
ntpq> host
I've tried adding a host= statement to the ntp.conf just for drill, no help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 03:33 PM
тАО05-07-2009 03:33 PM
Re: NTPQ *** can't find localhost
Is localhost defined in your /etc/hosts file? There should be a line similar to
127.0.0.1 loopback localhost
in the /etc/hosts file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 06:18 PM
тАО05-07-2009 06:18 PM
Re: NTPQ *** can't find localhost
server 0.us.pool.ntp.org # US pool 0
server 1.us.pool.ntp.org # US pool 1
server 2.us.pool.ntp.org # US pool 2
fudge 127.127.1.1 stratum 10 # localhost fallback
driftfile /etc/ntp.drift # monitor drift
Replace the server lines with the names of your ntp servers. The fudge is used to define the fallback to the local clock whwen all else fails.
NOTE: if you want all those comments back, the original file is located in n/usr/newconfig/etc/ntp.conf
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2009 12:29 PM
тАО05-08-2009 12:29 PM
Re: NTPQ *** can't find localhost
127.0.0.1 localhost loopback
and nslookup finds this.
Also, /etc/ntp.conf is pretty sparse
driftfile /etc/ntp.drift #path for drift file
fudge 127.127.1.1 stratum 10
server 150.235.251.228 version 3
server 150.235.229.57 version 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2009 12:48 PM
тАО05-08-2009 12:48 PM
Re: NTPQ *** can't find localhost
If they have been over-zealously protected, hostname resolving will typically fail for everyone except root.
If the file permissions are in order, the next thing to check is the contents of all three above-mentioned files. You've already shown that /etc/hosts contains a good-looking localhost line, is there anything else that might confuse matters? And are the two other files configured correctly?
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 11:18 AM
тАО05-12-2009 11:18 AM
Re: NTPQ *** can't find localhost
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2009 11:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2009 02:00 PM
тАО05-18-2009 02:00 PM
Re: NTPQ *** can't find localhost
That did it. I copied in the generic nsswitch.files, and now it is working.
I didn't think I needed the nsswitch.conf, because on these boxes it's strictly running off of the /etc/hosts...