LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 07-23-2008, 09:18 PM   #1
noir911
Member
 
Registered: Apr 2004
Location: Baltimore, MD
Posts: 681

Rep: Reputation: Disabled
syslog-ng not resolving DNS names


I am running syslog-ng 1.6.12 on OpenSUSE 10.3 & all the network switches that are logging in there are not resolving host name. They all log by IP address instead. But if I do nslookup from the logging server I can resolve the host names fine.

I have use_dns (yes); and use_fqdn (yes); in /etc/syslog-ng/syslog-ng.conf.
In /etc/resolv.conf I have added all my subdomain (like, switch.company.com, router.company.com etc.) and restarted syslog-ng daemon. I haven't restarted the network daemon though. I don't think I need to.

Does anyone know what I am doing wrong?

Thanks for any help.
 
Old 07-24-2008, 03:21 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
can you show us proof that DNS is fully functional on the server in question and provide the full syslog-ng.conf?
 
Old 07-28-2008, 03:02 AM   #3
noir911
Member
 
Registered: Apr 2004
Location: Baltimore, MD
Posts: 681

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
can you show us proof that DNS is fully functional on the server in question and provide the full syslog-ng.conf?
I am not sure how to show the proof that DNS is working. All I can say is that I do nslookup <host name> and it gives me answer from the DNS server.

Here's the full syslog-ng.conf

Quote:

options {
sync (0);
time_reopen (10);
log_fifo_size (1000);
long_hostnames (off);
use_dns (yes);
use_fqdn (yes);
create_dirs (no);
keep_hostname (yes);
stats (3600);
}

source s_sys {
unix-stream ( "/dev/log" );
internal();
};

source s_net { udp (); };

destination d_cons { file ( "/dev/console" ); };
destination d_mesg { file ( "/var/log/messages" ); };
destination d_auth { file ( "/var/log/secure" ); };
destination d_mail { file ( "/var/log/maillog" ); };
destination d_spol { file ( "/var/log/spooler" ); };
destination d_boot { file ( "/var/log/boot.log" ); };
destination d_cron { file ( "/var/log/cron" ); };
destination d_mlal { usertty ( "*" ); };
destination d_kern { file ( "/var/log/kern" ); };

filter f_mesg {
level ( info..emerg ) and not ( facility ( mail ) or facility ( authpriv ) or facility ( cron ) );
};
filter f_auth { facility ( authpriv ); };
filter f_mail { facility ( mail ); };
filter f_cron { facility ( cron ); };
filter f_emrg { level ( emerg ); };
filter f_spol { facility ( uucp ) or ( facility ( news ) and level ( crit ) ); };
filter f_boot { facility ( local7 ); };

log { source ( s_sys ); filter ( f_mesg ); destination ( d_mesg ); };
log { source ( s_sys ); filter ( f_auth ); destination ( d_auth ); };
log { source ( s_sys ); filter ( f_mail ); destination ( d_mail ); };
log { source ( s_sys ); filter ( f_cron ); destination ( d_cron ); };
log { source ( s_sys ); filter ( f_emrg ); destination ( d_mlal ); };
log { source ( s_sys ); filter ( f_spol ); destination ( d_spol ); };
log { source ( s_sys ); filter ( f_boot ); destination ( d_boot ); };

destination d_remote_logs {
file ( "/var/log/hosts/$FULLHOST"
# owner( root ) group( root ) perm ( 0600 ) dir_perm( 0700 ) create_dirs ( yes )
owner( root ) group( root ) perm ( 0644 ) dir_perm( 0744 ) create_dirs ( yes )
template ( "$DATE $FULLHOST $PROGRAM $TAG [$FACILITY.$LEVEL] $MESSAGE\n" ) );
};

log { source ( s_net ); destination ( d_remote_logs ); };
log { source ( s_sys ); destination ( d_remote_logs ); };
Thanks for any help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
My box is not resolving dns names. Waht can i do ? rubenscript Linux - Networking 18 05-01-2006 01:43 AM
DNS - resolving names without needing the FQDN ehorton Linux - Newbie 5 01-16-2006 08:43 PM
resolving names through a router Y0jiMb0 Linux - Networking 4 11-15-2005 04:05 PM
/etc/hosts resolving before DNS resolving ? markraem Linux - Networking 4 11-02-2003 04:54 AM
Apache is resolving names to ip? danimaldaisy Linux - Networking 3 12-18-2002 12:54 AM


All times are GMT -5. The time now is 02:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration