<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how do I prevent syslogd from stripping domain names? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-prevent-syslogd-from-stripping-domain-names/m-p/2882043#M3351</link>
    <description>*nod* thought it was a bit of straw grasping.&lt;BR /&gt;&lt;BR /&gt;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').&lt;BR /&gt;&lt;BR /&gt;But you've found this out already with your test of changing the local host name.&lt;BR /&gt;&lt;BR /&gt;The documentation also states that there isn't a flag to say "don't strip".&lt;BR /&gt;&lt;BR /&gt;Sorry.&lt;BR /&gt;&lt;BR /&gt;You might want to grab the sources for syslogd, and manually remove the parsing routine that removes the domain, recompile, and use that.</description>
    <pubDate>Wed, 15 Jan 2003 22:35:05 GMT</pubDate>
    <dc:creator>Stuart Browne</dc:creator>
    <dc:date>2003-01-15T22:35:05Z</dc:date>
    <item>
      <title>how do I prevent syslogd from stripping domain names?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-prevent-syslogd-from-stripping-domain-names/m-p/2882040#M3348</link>
      <description>Running redhat7.2.  My syslogd seems to be stripping off any domains from network hosts in the same domain as the redhat box when logging messages from those hosts, EVEN THOUGH -s is empty.&lt;BR /&gt;&lt;BR /&gt;I've tried explicitely listing -s '' as an option - no luck.&lt;BR /&gt;&lt;BR /&gt;I've tried explicitely listing -s with a bad domain like so: -s 'moomoo.cowcow' - no luck.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;In other words, if the logging source is:&lt;BR /&gt;logger.foo.com&lt;BR /&gt;&lt;BR /&gt;...and the logging receiver is:&lt;BR /&gt;logserver.foo.com&lt;BR /&gt;&lt;BR /&gt;...then syslog strips foo.com, but if I go to logserver and execute:&lt;BR /&gt;hostname logserver&lt;BR /&gt;&lt;BR /&gt;...thereby stripping the domain name, THEN syslogd happily records messages from logger as being from "logger.foo.com".&lt;BR /&gt;&lt;BR /&gt;I need it to *always* record the FQDN.  Anyone have a solution, other than chopping the domain out of the hostname?&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Tue, 14 Jan 2003 22:15:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-prevent-syslogd-from-stripping-domain-names/m-p/2882040#M3348</guid>
      <dc:creator>Trever Furnish</dc:creator>
      <dc:date>2003-01-14T22:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: how do I prevent syslogd from stripping domain names?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-prevent-syslogd-from-stripping-domain-names/m-p/2882041#M3349</link>
      <description>I don't suppose you've got a 'search &lt;DOMAIN&gt;' in your /etc/resolv.conf ?&lt;/DOMAIN&gt;</description>
      <pubDate>Tue, 14 Jan 2003 22:57:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-prevent-syslogd-from-stripping-domain-names/m-p/2882041#M3349</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2003-01-14T22:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: how do I prevent syslogd from stripping domain names?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-prevent-syslogd-from-stripping-domain-names/m-p/2882042#M3350</link>
      <description>Yes, there's a search domain defined, but it doesn't seem to have an effect on this behavior - I took it out, restarted syslog, no joy.</description>
      <pubDate>Wed, 15 Jan 2003 13:25:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-prevent-syslogd-from-stripping-domain-names/m-p/2882042#M3350</guid>
      <dc:creator>Trever Furnish</dc:creator>
      <dc:date>2003-01-15T13:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: how do I prevent syslogd from stripping domain names?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-prevent-syslogd-from-stripping-domain-names/m-p/2882043#M3351</link>
      <description>*nod* thought it was a bit of straw grasping.&lt;BR /&gt;&lt;BR /&gt;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').&lt;BR /&gt;&lt;BR /&gt;But you've found this out already with your test of changing the local host name.&lt;BR /&gt;&lt;BR /&gt;The documentation also states that there isn't a flag to say "don't strip".&lt;BR /&gt;&lt;BR /&gt;Sorry.&lt;BR /&gt;&lt;BR /&gt;You might want to grab the sources for syslogd, and manually remove the parsing routine that removes the domain, recompile, and use that.</description>
      <pubDate>Wed, 15 Jan 2003 22:35:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-prevent-syslogd-from-stripping-domain-names/m-p/2882043#M3351</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2003-01-15T22:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: how do I prevent syslogd from stripping domain names?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-prevent-syslogd-from-stripping-domain-names/m-p/2882044#M3352</link>
      <description>Yeah, that was what I was afraid of.  Well, not afraid, just avoiding.&lt;BR /&gt;&lt;BR /&gt;I'm wondering though whether the domain name is even supposed to be in the output returned by the hostname command.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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?</description>
      <pubDate>Wed, 15 Jan 2003 22:38:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-prevent-syslogd-from-stripping-domain-names/m-p/2882044#M3352</guid>
      <dc:creator>Trever Furnish</dc:creator>
      <dc:date>2003-01-15T22:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: how do I prevent syslogd from stripping domain names?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-prevent-syslogd-from-stripping-domain-names/m-p/2882045#M3353</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;remove 'domain' directive from /etc/resolv.conf&lt;BR /&gt;Restart syslogd .&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar</description>
      <pubDate>Thu, 16 Jan 2003 03:55:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-prevent-syslogd-from-stripping-domain-names/m-p/2882045#M3353</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2003-01-16T03:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: how do I prevent syslogd from stripping domain names?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-prevent-syslogd-from-stripping-domain-names/m-p/2882046#M3354</link>
      <description>Um, I'm guessing you're refering to the search directive, and as I already mentioned I've verified that that doesn't help.  Other thoughts?</description>
      <pubDate>Thu, 16 Jan 2003 14:07:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-prevent-syslogd-from-stripping-domain-names/m-p/2882046#M3354</guid>
      <dc:creator>Trever Furnish</dc:creator>
      <dc:date>2003-01-16T14:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: how do I prevent syslogd from stripping domain names?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-prevent-syslogd-from-stripping-domain-names/m-p/2882047#M3355</link>
      <description>Trevor,&lt;BR /&gt;&lt;BR /&gt;Did you ever get to fix this issue?&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;peace&lt;BR /&gt;Donny</description>
      <pubDate>Sat, 06 Sep 2003 13:10:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-prevent-syslogd-from-stripping-domain-names/m-p/2882047#M3355</guid>
      <dc:creator>Donny Jekels</dc:creator>
      <dc:date>2003-09-06T13:10:02Z</dc:date>
    </item>
  </channel>
</rss>

