[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 381
  • Last Modified:

tcpd using 90% of CPU

tcpd is using up 90% of my resources on a redhat 7.1 machine.

when I examine /var/log/messages I see the following messages:

tcpd[1165]: warning: can't get client address: Socket operation on non-socket
tcpd[1165]: connect from unknown

I saw a post on groups.google.com that said it might be a misconfiguration in my hosts file...

my boxes hostname is : mail

but when I type : host mail

I get : Host mail. not found: 3(NXDOMAIN)


which makes me think that I have messed up someplace....

here are the lines in my host file:

127.0.0.1               mydomain.com mydomain localhost.localdomain localhost

I know I've goofed somewhere, but I just don't know where, any help at this point would be great.. as this log file grows by a MB every 5 minutes :/

thanks,
j.
0
drflynn
Asked:
drflynn
1 Solution
 
Somebody_elseCommented:
add the line:
192.168.176.2 mail

where that ip address is replaced by the ip address of your network adapter.

then when you ping mail it should resolve to the ip addy.

does this help?
0
 
wingboadCommented:
 it seems that this is related with your hostname<---> ip
address,the "host" command will use DNS service,if you don'
t have a upstream DNS server or you don't want to use DNS,
then Somebody_else is right,add your IP address to /etc/hos
ts & its alias,i recommanded that you'd better add it in th
at file,because sometimes,other services will probally use
the hosts file too
  (if you want to use DNS instead,please tell me)
0
 
MFCRichCommented:
Tip: if you put a 'search' option in your '/etc/resolv.conf' like

> search myfavorite.domain

then host names with no dots in them will be looked for in the listed domain. EG

'ping mail' would try the FQDN 'mail.myfavorite.domain' first and fall back to 'mail' if the lookup failed. Of course, most people choose to put there local domain in the search directive.
0
 
CleanupPingCommented:
drflynn:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
troopernCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept Somebody_else's comment as answer.
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

troopern
EE Cleanup Volunteer



0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now