LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-07-2007, 10:53 AM   #1
ddenton
Member
 
Registered: May 2007
Posts: 114

Rep: Reputation: 15
Syslog and Massive amount of DNS requests...


I have an RHEL 4 server that is running a syslog daemon for a firewall. It was configured a few days ago. Today I've noticed a massive increase in the amount of DNS requests coming from the server in question going out to its only configured DNS server. These of course are logged by the firewall and dumped onto the firewall log on the system.

I stopped or killed every service on the machine that wasn't related the OS, still with no luck. I also removed the -r switch from the /etc/sysconfig/syslog file so nothing could write to the server. Still, no luck. Then, I commented out the entry in resolv.conf for the nameserver and poof, the DNS requests ceased, as expected.

I then turned on all of the services that I disabled and uncommented the resolv.conf file, and all was good, no large increase in DNS requests, so I thought I was good. I then remembered that I had syslog still "disabled" so I changed the syslog conf file to allow writing, and the firewall and the associated log began flooding with DNS requests again.

Can anyone please tell me if syslog attempts to resolve every address that's written to it, and if so, is there a way to disable that feature? Is there another piece of the puzzle I'm missing? I don't need any addresses resolved, and there's nothing but IP addresses in the logs, so if it is trying to resolve anything, it's not working.

Thanks in advance...
 
Old 09-07-2007, 11:27 AM   #2
ddenton
Member
 
Registered: May 2007
Posts: 114

Original Poster
Rep: Reputation: 15
I found the problem. Syslog does indeed by default try to resolve IP's in log entries when they are written to the server using the -r flag. The -x flag cancels this option.
 
Old 09-07-2007, 02:09 PM   #3
cconstantine
Member
 
Registered: Dec 2005
Distribution: RedHat, Ubuntu
Posts: 101

Rep: Reputation: 15
just an FYI...

as another option: If the number of systems sending syslog messages to the box is small, and you don't mind a little static DNS config (which has to be kept updated as you move/rename machines)

you can reenable the syslog resolve feature and put the hosts into the /etc/hosts file on your machine running the syslog daemon. This is useful if you need the hostnames in your log files (perhaps so they makes sense years later? dunno what your using them for), without the penalty of banging on the DNS server.

-c
 
Old 09-10-2007, 08:36 AM   #4
ddenton
Member
 
Registered: May 2007
Posts: 114

Original Poster
Rep: Reputation: 15
Thanks for the reply CC. The firewall in question is behind two other layers of firewalls, and I know the IP's of the boxes that would hit it, so resolution isn't really necessary. Thanks for the tip though. Much appreciated...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND9 not forwarding DNS requests lordbressers Linux - Server 8 05-19-2007 12:06 AM
DNS requests go to loopback?? curiouspenguin Linux - Networking 5 09-20-2006 03:42 PM
Massive sensor alarm output in syslog powadha Debian 4 06-01-2006 08:00 AM
foward dns requests ? black1 Linux - Networking 1 03-06-2006 03:52 AM
forward all dns requests to one page Moszer Linux - Networking 4 05-25-2004 01:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration