[CentOS] fqdn hostname fails after reboot

Ljubomir Ljubojevic office at plnet.rs
Thu Feb 9 11:58:21 UTC 2012


On 02/09/2012 01:28 AM, Chris wrote:
> 2012/2/9 Stephen Harris<lists at spuddy.org>:
>> On Thu, Feb 09, 2012 at 01:00:33AM +0100, Chris wrote:
>>> Feb  9 00:49:57 x800 postfix[1387]: warning: valid_hostname: invalid
>>> character 13(decimal): x800.mydomain.local?
>>
>> 13 is control-M.
>>
>> One of your config files is in DOS format and has an embedded control-M
>> in it.  Check /etc/sysconfig/network.  If you "vi" it, does it show ^M
>> at the end, or does the bottom line say [dos] ?
>>
>> When you find the file, "dos2unix" will fix it.
>
> Thank you very very much !!
>
> After converting...
> [root at x800 sysconfig]# dos2unix network
> dos2unix: converting file network to UNIX format ...
>
> Everything works fine :)
>
> But I do not understand why it was in DOS format?
>

Because someone edited it from Windows, like using WinSCP to access it.


-- 

Ljubomir Ljubojevic
(Love is in the Air)
PL Computers
Serbia, Europe

Google is the Mother, Google is the Father, and traceroute is your
trusty Spiderman...
StarOS, Mikrotik and CentOS/RHEL/Linux consultant



More information about the CentOS mailing list