Jira (FACT-3168) networking.domain does resolv to dot

12 views
Skip to first unread message

Mike Fröhner

unread,
Nov 30, 2022, 7:47:02 AM11/30/22
to puppe...@googlegroups.com
Mike Fröhner updated an issue
 
Facter / Bug FACT-3168
networking.domain does resolv to dot
Change By: Mike Fröhner
Summary: fact networking.domain does resolv to dot
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Mike Fröhner

unread,
Nov 30, 2022, 8:00:04 AM11/30/22
to puppe...@googlegroups.com
Mike Fröhner updated an issue
We recently have upgraded to puppet 7.0.18 and facter 4.2.13 for our Ubuntu 22.04 nodes.

Since this upgrade all Ubuntu 22.04 do resolv the facts `networking.domain` to `.` and `networking.fqdn` to `hostname..`.

This comes from [the resolver](https://github.com/puppetlabs/facter/blob/4.2.13/lib/facter/resolvers/linux/hostname.rb#L101).

If you have With the default Ubuntu 22.04 resolv.conf setting which is a symlinked /etc/resolv.conf file to /run/systemd/resolve/stub-resolv.conf which is written by the systemd service `systemd-resolved` containing a config with `search .` (this is the default for Ubuntu 22 . 04).

Therefore all values with:
```
Stdlib::Host $hostname = $facts['networking'
] ['fqdn']
```
are broken.

Mike Fröhner

unread,
Nov 30, 2022, 3:56:02 PM11/30/22
to puppe...@googlegroups.com
Mike Fröhner updated an issue
We recently have upgraded to puppet 7.0.18 and facter 4.2.13 for our Ubuntu 22.04 nodes.

Since this upgrade all Ubuntu 22.04 do resolv the facts `networking.domain` to `.` and `networking.fqdn` to `hostname..`.

This comes from [the resolver](https://github.com/puppetlabs/facter/blob/4.2.13/lib/facter/resolvers/linux/hostname.rb#L101).

And

https://github.com/systemd/systemd/commit/b3ffa2b5f3aa68dc6ab15893d5eeba8906aa3a9e

With the default Ubuntu 22.04 resolv.conf setting which is a symlinked /etc/resolv.conf file to /run/systemd/resolve/stub-resolv.conf which is written by the systemd service `systemd-resolved` containing a config with `search .`.

Therefore all values with:
```
Stdlib::Host $hostname = $facts['networking']['fqdn']
```
are broken.

Mike Fröhner

unread,
Nov 30, 2022, 3:57:03 PM11/30/22
to puppe...@googlegroups.com
Mike Fröhner updated an issue
We recently have upgraded to puppet 7.0.18 and facter 4.2.13 for our Ubuntu 22.04 nodes.

Since this upgrade all Ubuntu 22.04 do resolv the facts `networking.domain` to `.` and `networking.fqdn` to `hostname..`.

This comes from [the resolver](https://github.com/puppetlabs/facter/blob/4.2.13/lib/facter/resolvers/linux/hostname.rb#L101).

And



With the default Ubuntu 22.04 resolv.conf setting which is a symlinked /etc/resolv.conf file to /run/systemd/resolve/stub-resolv.conf which is written by the systemd service `systemd-resolved` containing a config with `search .`.
Therefore all values with:
```
Stdlib::Host $hostname = $facts['networking']['fqdn']
```
are broken.

Mike Fröhner

unread,
Dec 1, 2022, 10:32:03 AM12/1/22
to puppe...@googlegroups.com
Mike Fröhner commented on Bug FACT-3168
 
Re: networking.domain does resolv to dot

Well we fixed it via setting a search domain via /etc/systemd/resolved.conf. I think this can be closed.

Mike Fröhner

unread,
Dec 1, 2022, 10:32:03 AM12/1/22
to puppe...@googlegroups.com
Mike Fröhner updated an issue
Change By: Mike Fröhner
Priority: Critical Normal

Tim Meusel (Jira)

unread,
Dec 7, 2022, 4:22:03 AM12/7/22
to puppe...@googlegroups.com
Tim Meusel commented on Bug FACT-3168
 
Re: networking.domain does resolv to dot

Morgan Rhodes you closed this, but I still think this is a valid bug. Can you please elaborate why you closed it?

Reply all
Reply to author
Forward
0 new messages