<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/NetworkManager.git/src/core/dns, branch main</title>
<subtitle>gitlab.freedesktop.org: NetworkManager/NetworkManager.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/'/>
<entry>
<title>dns: refactor domain_is_valid() to combine #if blocks</title>
<updated>2023-05-02T09:42:55+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2023-05-02T09:08:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=db3da65c6c3613f3ec8e3c8b2af991c4c9967ab0'/>
<id>db3da65c6c3613f3ec8e3c8b2af991c4c9967ab0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>dns/trivial: rename check_public_suffix parameter of domain_is_valid()</title>
<updated>2023-05-02T09:42:49+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2023-05-02T09:37:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=4ddbf32f1bcc181b6e6a953bfcdfc39121692aa9'/>
<id>4ddbf32f1bcc181b6e6a953bfcdfc39121692aa9</id>
<content type='text'>
Names are important. The previous name was counter intuitive for what
the behavior was.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Names are important. The previous name was counter intuitive for what
the behavior was.
</pre>
</div>
</content>
</entry>
<entry>
<title>dns: use NM_STR_HAS_SUFFIX() instead of g_str_has_suffix()</title>
<updated>2023-05-02T09:40:34+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2023-05-02T09:35:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=601605dbea6ef68553e50b4ad609e28edbf9f142'/>
<id>601605dbea6ef68553e50b4ad609e28edbf9f142</id>
<content type='text'>
It translates to a plain memcmp() as the argument is a string literal.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It translates to a plain memcmp() as the argument is a string literal.
</pre>
</div>
</content>
</entry>
<entry>
<title>dns: fix logging for resetting the host-domain</title>
<updated>2023-05-02T09:40:33+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2023-05-02T09:25:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=b4338de9844d5b80b0df3b8f95d61fb8b1af639b'/>
<id>b4338de9844d5b80b0df3b8f95d61fb8b1af639b</id>
<content type='text'>
The previous logging happened, when the value did not change. Log
instead, when the value changes.

Fixes: 86bb09c93be3 ('dns: generate correct search domain for hostnames on non-public TLD')
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The previous logging happened, when the value did not change. Log
instead, when the value changes.

Fixes: 86bb09c93be3 ('dns: generate correct search domain for hostnames on non-public TLD')
</pre>
</div>
</content>
</entry>
<entry>
<title>dns: generate correct search domain for hostnames on non-public TLD</title>
<updated>2023-05-02T09:23:09+00:00</updated>
<author>
<name>Tom Sobczynski</name>
<email>tsobczynski@gmail.com</email>
</author>
<published>2023-04-25T23:19:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=86bb09c93be39d5a8c6602cdfb7958bde5c29059'/>
<id>86bb09c93be39d5a8c6602cdfb7958bde5c29059</id>
<content type='text'>
dns-manager uses the Mozilla Public Suffix List to determine an
appropriate search domain when generating /etc/resolv.conf. It is
presumed that if the hostname is "example.com", the user does not want
to automatically search "com" for unqualified hostnames, which is
reasonable.  To implement that, prior to the fix, domain_is_valid()
implicitly used the PSL "prevailing star rule", which had the
consequence of assuming that any top-level domain (TLD) is public
whether it is on the official suffix list or not. That meant
"example.local" or "example.localdomain" would not result in searching
"local" or "localdomain" respectively, but rather /etc/resolv.conf would
contain the full hostname "example.local" as the search domain and not
give users what they expect.  The fix here uses the newer PSL API
function that allows us to turn off the "prevailing star rule" so that
"local" and "localdomain" are NOT considered public TLDs because they
are not literally on the suffix list. That in turn gives us the search
domain "local" or "localdomain" in /etc/resolv.conf and allows
unqualified hostname lookups "e.g., resolvectl query example" to find
example.local while example.com still maintains the previous behavior
(i.e., search domain of "example.com" rather than "com").

[thaller@redhat.com: reworded commit message]

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1281

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1613
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
dns-manager uses the Mozilla Public Suffix List to determine an
appropriate search domain when generating /etc/resolv.conf. It is
presumed that if the hostname is "example.com", the user does not want
to automatically search "com" for unqualified hostnames, which is
reasonable.  To implement that, prior to the fix, domain_is_valid()
implicitly used the PSL "prevailing star rule", which had the
consequence of assuming that any top-level domain (TLD) is public
whether it is on the official suffix list or not. That meant
"example.local" or "example.localdomain" would not result in searching
"local" or "localdomain" respectively, but rather /etc/resolv.conf would
contain the full hostname "example.local" as the search domain and not
give users what they expect.  The fix here uses the newer PSL API
function that allows us to turn off the "prevailing star rule" so that
"local" and "localdomain" are NOT considered public TLDs because they
are not literally on the suffix list. That in turn gives us the search
domain "local" or "localdomain" in /etc/resolv.conf and allows
unqualified hostname lookups "e.g., resolvectl query example" to find
example.local while example.com still maintains the previous behavior
(i.e., search domain of "example.com" rather than "com").

[thaller@redhat.com: reworded commit message]

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1281

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1613
</pre>
</div>
</content>
</entry>
<entry>
<title>all: use G_SPAWN_CLOEXEC_PIPES with g_spawn_async_with_pipes()</title>
<updated>2023-04-04T06:43:20+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2023-04-03T17:38:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=31fd8f60cf21ab8fca232ef0d2dcd65f71b1c03e'/>
<id>31fd8f60cf21ab8fca232ef0d2dcd65f71b1c03e</id>
<content type='text'>
G_SPAWN_CLOEXEC_PIPES is supported since glib 2.40, which we already
depend on.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
G_SPAWN_CLOEXEC_PIPES is supported since glib 2.40, which we already
depend on.
</pre>
</div>
</content>
</entry>
<entry>
<title>dnsmasq: process both global and per-device configuration</title>
<updated>2023-03-03T13:06:24+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2023-03-02T17:02:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=5c0a927e0fd983a963f49cf8dccba6a82c95ef94'/>
<id>5c0a927e0fd983a963f49cf8dccba6a82c95ef94</id>
<content type='text'>
The global configuration now can be valid when there are no global
domains defined. The dnsmasq backend must process it and then, if
there is no global default domain, also process the per-connection
settings.

Fixes: 1f0d1d78d2a2 ('dns-manager: always apply options from [global-dns]')
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The global configuration now can be valid when there are no global
domains defined. The dnsmasq backend must process it and then, if
there is no global default domain, also process the per-connection
settings.

Fixes: 1f0d1d78d2a2 ('dns-manager: always apply options from [global-dns]')
</pre>
</div>
</content>
</entry>
<entry>
<title>dns: consider the dns-type and the priority when hashing DNS configs</title>
<updated>2023-02-07T12:46:15+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2023-01-30T16:29:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=2a0f41af0356abdc6e91be24ea7b5ad51d1bc314'/>
<id>2a0f41af0356abdc6e91be24ea7b5ad51d1bc314</id>
<content type='text'>
The dns-type must be included in the hash because it contributes to
the generated composite configuration. Without this, when the type of
a configuration changes (e.g. from DEFAULT to BEST), the DNS manager
would determine that there was no change and it wouldn't call
update_dns().

https://bugzilla.redhat.com/show_bug.cgi?id=2161957

Fixes: 8995d44a0bae ('core: compare the DNS configurations before updating DNS')
(cherry picked from commit 46ccc82a81146132e4bc9c6cc96d7b8b2305f85f)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The dns-type must be included in the hash because it contributes to
the generated composite configuration. Without this, when the type of
a configuration changes (e.g. from DEFAULT to BEST), the DNS manager
would determine that there was no change and it wouldn't call
update_dns().

https://bugzilla.redhat.com/show_bug.cgi?id=2161957

Fixes: 8995d44a0bae ('core: compare the DNS configurations before updating DNS')
(cherry picked from commit 46ccc82a81146132e4bc9c6cc96d7b8b2305f85f)
</pre>
</div>
</content>
</entry>
<entry>
<title>core,libnm: move enum NMDnsIPConfigType</title>
<updated>2023-02-07T12:46:14+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2023-01-30T16:20:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=b14268290ac4db8fa4839d6fb362ddef151039a4'/>
<id>b14268290ac4db8fa4839d6fb362ddef151039a4</id>
<content type='text'>
The enum will be used outside of core/dns.

(cherry picked from commit 8a4632b56a1050ae155fef473582cae713321bce)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The enum will be used outside of core/dns.

(cherry picked from commit 8a4632b56a1050ae155fef473582cae713321bce)
</pre>
</div>
</content>
</entry>
<entry>
<title>core: rename and move nm_ip_config_dns_hash()</title>
<updated>2023-02-07T12:46:14+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2023-01-30T16:17:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=a7412e2c65e894f578e9c8ed137c81591f71c5d6'/>
<id>a7412e2c65e894f578e9c8ed137c81591f71c5d6</id>
<content type='text'>
The function operates on a NML3ConfigData, rename it and move it to
the right place.

(cherry picked from commit ec0a83b224b313839357fb325ccede0f5a0c47c4)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The function operates on a NML3ConfigData, rename it and move it to
the right place.

(cherry picked from commit ec0a83b224b313839357fb325ccede0f5a0c47c4)
</pre>
</div>
</content>
</entry>
</feed>
