<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="https://tanguy.ortolo.eu/blog/feed/rss/commentaires/" />
	<link>https://tanguy.ortolo.eu/blog/article5/fq-hostnames</link>
	<language>en</language>
	<description>a blog about Debian and self-hosting</description>
	<lastBuildDate>Sat, 21 May 2011 13:06:00 +0000</lastBuildDate>
	<generator>PluXml</generator>
	<item>
		<title>About system host names - Written by mirabilos @ saturday 21 may 2011, 13:06</title> 
		<link>https://tanguy.ortolo.eu/blog/article5/fq-hostnames/#c1305983174-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article5/fq-hostnames/#c1305983174-1</guid>
		<description>The hostname manpage on GNU is simply broken. Many OSes seem to think you use the short name and then use the domainname command for the suffix, but that’s wrong – the domainname command is for NIS/YP only. The correct thing is to use the FQDN (foo.bar.com) as hostname, and use either:

127.0.0.1 foo.bar.com foo localhost

or:

127.0.0.1 localhost
1.2.3.4 foo.bar.com foo

as /etc/hosts, depending on whether you have a static (second) or dynamic (first example) primary IPv4 address. (Using 127.0.1.1 will also spectacularily fail in some cases.)

The only drawback I identified so far is the kdm login window in squeeze/sid – but then, the text is too wide for it even when using the short hostname, so why bother? That’s cosmetic after all, and clearly a bug in the theming.</description>
		<pubDate>Sat, 21 May 2011 13:06:00 +0000</pubDate>
		<dc:creator>mirabilos</dc:creator>
	</item>
	<item>
		<title>About system host names - Written by Vincent Bernat @ saturday 21 may 2011, 05:09</title> 
		<link>https://tanguy.ortolo.eu/blog/article5/fq-hostnames/#c1305954574-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article5/fq-hostnames/#c1305954574-1</guid>
		<description>@Tanguy: a common fallback (and used with hostname) is to just use &amp;quot;uname -n&amp;quot;. This explains why this works despite the absence of answers from the resolver.</description>
		<pubDate>Sat, 21 May 2011 05:09:00 +0000</pubDate>
		<dc:creator>Vincent Bernat</dc:creator>
	</item>
	<item>
		<title>About system host names - Written by Fernando @ friday 20 may 2011, 22:30</title> 
		<link>https://tanguy.ortolo.eu/blog/article5/fq-hostnames/#c1305930613-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article5/fq-hostnames/#c1305930613-1</guid>
		<description>Put the hostname in /etc/hostname. Put 127.0.1.1 name.domain name in /etc/hosts. Now hostname -s will say hostname, and hostname -d will say domain. This is the right approach, I believe.</description>
		<pubDate>Fri, 20 May 2011 22:30:00 +0000</pubDate>
		<dc:creator>Fernando</dc:creator>
	</item>
	<item>
		<title>About system host names - Written by Bruce @ friday 20 may 2011, 16:40</title> 
		<link>https://tanguy.ortolo.eu/blog/article5/fq-hostnames/#c1305909606-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article5/fq-hostnames/#c1305909606-1</guid>
		<description>hostname != fqdn
hostname != domain name

hostname.domain.name = DNS name</description>
		<pubDate>Fri, 20 May 2011 16:40:00 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
	</item>
	<item>
		<title>About system host names - Written by Albert @ friday 20 may 2011, 16:38</title> 
		<link>https://tanguy.ortolo.eu/blog/article5/fq-hostnames/#c1305909526-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article5/fq-hostnames/#c1305909526-1</guid>
		<description>I agree - I have switched from using short host names in /etc/hostname to using a fqdn and also saw benefits, such as playing nicely with Postfix as you mentioned, but also when setting up Puppet.

I have not seen any drawbacks to using fqdn in /etc/hostname.</description>
		<pubDate>Fri, 20 May 2011 16:38:00 +0000</pubDate>
		<dc:creator>Albert</dc:creator>
	</item>
	<item>
		<title>About system host names - Written by Javi @ friday 20 may 2011, 08:18</title> 
		<link>https://tanguy.ortolo.eu/blog/article5/fq-hostnames/#c1305879523-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article5/fq-hostnames/#c1305879523-1</guid>
		<description>OpenOffice can have issues if not fqdn is set in your hostname and your dns doesn&amp;#039;t resolve yourmachine.(local) in a short time period

See:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=619968

How it the correct network configuration in this specific case ?

Thanks!</description>
		<pubDate>Fri, 20 May 2011 08:18:00 +0000</pubDate>
		<dc:creator>Javi</dc:creator>
	</item>
	<item>
		<title>About system host names - Written by Jon @ friday 20 may 2011, 06:52</title> 
		<link>https://tanguy.ortolo.eu/blog/article5/fq-hostnames/#c1305874362-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article5/fq-hostnames/#c1305874362-1</guid>
		<description>dhclient should probably use gethostname() rather than read /etc/hostname itself.</description>
		<pubDate>Fri, 20 May 2011 06:52:00 +0000</pubDate>
		<dc:creator>Jon</dc:creator>
	</item>
	<item>
		<title>About system host names - Written by Tanguy @ friday 20 may 2011, 06:42</title> 
		<link>https://tanguy.ortolo.eu/blog/article5/fq-hostnames/#c1305873767-1</link>
		<guid>https://tanguy.ortolo.eu/blog/article5/fq-hostnames/#c1305873767-1</guid>
		<description>@M: Indeed, I made a mistake, the host name is usually associated with another loopback address, 127.0.1.1.

@Vincent: Strange: I made several tests and when using the FQDN as the hostname, hostname -f returns if even if no resolution can return it.</description>
		<pubDate>Fri, 20 May 2011 06:42:00 +0000</pubDate>
		<dc:creator>Tanguy</dc:creator>
	</item>
		<title>Tanguy Ortolo - About system host names - Comments</title> 
</channel>
</rss>