1

We have several servers, all RHEL6 (x86_64), that are constantly querying our DNS server for xmlrpc.rhn.redhat.com. We have nscd installed and configured on each of those servers and hosts caching is enabled, but doesn't seem to apply to this. Even adding the entry in the hosts file of the servers doesn't stop the DNS queries. Those servers are in a VLAN that doesn't have Internet access, and we are not using a RHN Satellite either.

I thought it was because of the services rhnsd and rhsmcertd, but the queries continue even if they are stopped and disabled.

Would anyone have an idea where this query is coming from and why it's not observing the local hosts caching in place?

alexus
  • 12,342
  • 27
  • 115
  • 173
Yanick Girouard
  • 2,295
  • 1
  • 17
  • 18

3 Answers3

2

I'd try checking for following:

# chkconfig --list | grep :on | grep rh
rhnsd           0:off   1:off   2:on    3:on    4:on    5:on    6:off
rhsmcertd       0:off   1:off   2:off   3:on    4:on    5:on    6:off
# 

Check to see if it's REALLY stopped & disabled, also try to check crons, possibly to correlate it with job.

You could also try: lsof -i UDP:domain.

alexus
  • 12,342
  • 27
  • 115
  • 173
1

Try something like this.

while true; do echo "COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME" ; sudo lsof -i -P -n | grep ":53"; done

This should reveal the PID of the command(s) issuing outbound port 53 requests.

alexus
  • 12,342
  • 27
  • 115
  • 173
dmourati
  • 24,720
  • 2
  • 40
  • 69
0

Turns out the rhnsd service simply kept retrying to connect to RHN because it couldn't connect. When the service was stopped, there was several DNS queries that were "queued" up, and they kept on going for a few more minutes after the service was stopped, which is why it seemed like it didn't have any effect. I waited 1 hour after the service was stopped and after a while the queries stopped completely and didn't come back.

So bottom line, all I had to do was to stop and disable the rhnsd and rhsmcertd services and wait a few minutes.

Yanick Girouard
  • 2,295
  • 1
  • 17
  • 18