[sles-beta] SLES12 x86_64 Beta3 autoyast issue /etc/hosts no hostname entry

Marius Tomaschewski mt at suse.de
Fri Mar 28 04:00:24 MDT 2014


Am 26.03.2014 14:41, schrieb urs.frey at post.ch:
> Hello Marius
>
> Thank you very much!

Hi!

You're welcome!

> I inserted as you told in my autoinst.xml
>      <dns>
>        <dhcp_hostname config:type="boolean">false</dhcp_hostname>
>        <dhcp_resolv config:type="boolean">false</dhcp_resolv>
>        <write_hostname config:type="boolean">true</write_hostname>
>        <domain>pnet.ch</domain>
>        <hostname>h063uz</hostname>
>        <nameservers config:type="list">
>          <nameserver>10.1.121.11</nameserver>
>          <nameserver>10.2.121.11</nameserver>
>        </nameservers>
>        <searchlist config:type="list">
>          <search>pnet.ch</search>
>          <search>post.ch</search>
>        </searchlist>
>      </dns>
>
> But the result is not exactly what I expect. Hostname gets written, but the TCP/IP Address is not the correct one

Ah... the "write_hostname" seems to result in the 127.0.0.2 hack.

Originally intended as fallback to get the hostname resolved when
there is no IP address available on dynamic (ppp,dhcp) links...
and breaking resolving of the hostname completely as it causes to
always resolve the hostname to 127.0.0.2... even the IP is there.
So "write_hostname" seems the wrong way to do it.

>      <host>
>        <hosts config:type="list">
>           <hosts_entry>
>             <host_address>127.0.0.1</host_address>
>             <names config:type="list">
>                <name>localhost</name>
>             </names>
>           </hosts_entry>
>           <hosts_entry>
>             <host_address>10.226.154.19</host_address>
>             <names config:type="list">
>                <name>h063uz.pnet.ch h063uz</name>
>             </names>
>         </hosts>
>      </host>
>
> So from my point of view, there is something wrong with autoyast

Open a bug report for autoyast2. I've no idea about this machinery.

Gruesse / Regards,
  Marius Tomaschewski <mt at suse.de>, <mt at suse.com>
-- 
  SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg),
  GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer,
  Maxfeldstraße 5, 90409 Nürnberg, Germany


More information about the sles-beta mailing list