- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- how do I prevent syslogd from stripping domain nam...
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
Forums
Discussions
Discussions
Discussions
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
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
01-14-2003 02:15 PM
01-14-2003 02:15 PM
how do I prevent syslogd from stripping domain names?
I've tried explicitely listing -s '' as an option - no luck.
I've tried explicitely listing -s with a bad domain like so: -s 'moomoo.cowcow' - no luck.
I've verified that if I add a fake entry to /etc/hosts for the ip address of the message source, then syslogd will leave the domain name alone *if* it doesn't have the same domain name as the domain reported on the end of the output of the 'hostname' command.
In other words, if the logging source is:
logger.foo.com
...and the logging receiver is:
logserver.foo.com
...then syslog strips foo.com, but if I go to logserver and execute:
hostname logserver
...thereby stripping the domain name, THEN syslogd happily records messages from logger as being from "logger.foo.com".
I need it to *always* record the FQDN. Anyone have a solution, other than chopping the domain out of the hostname?
I'll admit to a little confusion (and headache) regarding whether the domain name should even be there in the output of the hostname command normally, so any comments on that are welcome.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 02:57 PM
01-14-2003 02:57 PM
Re: how do I prevent syslogd from stripping domain names?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 05:25 AM
01-15-2003 05:25 AM
Re: how do I prevent syslogd from stripping domain names?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 02:35 PM
01-15-2003 02:35 PM
Re: how do I prevent syslogd from stripping domain names?
The Syslog documentation says that if the domain of the remote machine is the same as the domain of the local machine, it will strip all but the host-name (i.e. do a '-s local.domain.com').
But you've found this out already with your test of changing the local host name.
The documentation also states that there isn't a flag to say "don't strip".
Sorry.
You might want to grab the sources for syslogd, and manually remove the parsing routine that removes the domain, recompile, and use that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 02:38 PM
01-15-2003 02:38 PM
Re: how do I prevent syslogd from stripping domain names?
I'm wondering though whether the domain name is even supposed to be in the output returned by the hostname command.
Ie if I do hostname now, just the unqualified hostname is returned - I'm not sure whether that is optimal or will cause a problem.
Sendmail uses an entirely different domain name and /etc/sysconfig/network still contains the FQDN. The man page for the hostname command isn't all that clear (at least not to me) on that point. Any thoughts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 07:55 PM
01-15-2003 07:55 PM
Re: how do I prevent syslogd from stripping domain names?
remove 'domain' directive from /etc/resolv.conf
Restart syslogd .
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 06:07 AM
01-16-2003 06:07 AM
Re: how do I prevent syslogd from stripping domain names?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2003 06:10 AM
09-06-2003 06:10 AM
Re: how do I prevent syslogd from stripping domain names?
Did you ever get to fix this issue?
You probibly forgot about this thread, but you should also look at your /etc/nsswitch.conf file to see where your system resolves name from.
Step 2, get the source code for your syslogd and recompile it, make sure you tell syslog no to truncate domain suffix. while youre at it, reroute your syslog.conf file to another location. security trick! then leave your existing /etc/syslog.conf intact. but you make all your new config changes in the new file only you know of.
peace
Donny