<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.jayscafe.net/index.php?action=history&amp;feed=atom&amp;title=Resolv.conf</id>
	<title>Resolv.conf - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.jayscafe.net/index.php?action=history&amp;feed=atom&amp;title=Resolv.conf"/>
	<link rel="alternate" type="text/html" href="https://wiki.jayscafe.net/index.php?title=Resolv.conf&amp;action=history"/>
	<updated>2026-04-08T12:26:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://wiki.jayscafe.net/index.php?title=Resolv.conf&amp;diff=599&amp;oldid=prev</id>
		<title>Jayctheriot: Created page with &quot;Copy/pasted from https://unix.stackexchange.com/questions/694764/how-to-configure-resolv-conf  &lt;code&gt;resolvconf&lt;/code&gt; was/is a tool designed to allow updates to &lt;code&gt;/etc/resolv.conf&lt;/code&gt; file from multiple sources (e.g. DHCP, static configuration by sysadmin, VPN clients, installation of a local DNS server...) in a way that allows the settings from each source to be reverted without interference to the other sources. It also allows setting priorities for each DNS co...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.jayscafe.net/index.php?title=Resolv.conf&amp;diff=599&amp;oldid=prev"/>
		<updated>2025-05-08T10:33:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Copy/pasted from https://unix.stackexchange.com/questions/694764/how-to-configure-resolv-conf  &amp;lt;code&amp;gt;resolvconf&amp;lt;/code&amp;gt; was/is a tool designed to allow updates to &amp;lt;code&amp;gt;/etc/resolv.conf&amp;lt;/code&amp;gt; file from multiple sources (e.g. DHCP, static configuration by sysadmin, VPN clients, installation of a local DNS server...) in a way that allows the settings from each source to be reverted without interference to the other sources. It also allows setting priorities for each DNS co...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Copy/pasted from https://unix.stackexchange.com/questions/694764/how-to-configure-resolv-conf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;resolvconf&amp;lt;/code&amp;gt; was/is a tool designed to allow updates to &amp;lt;code&amp;gt;/etc/resolv.conf&amp;lt;/code&amp;gt; file from multiple sources (e.g. DHCP, static configuration by sysadmin, VPN clients, installation of a local DNS server...) in a way that allows the settings from each source to be reverted without interference to the other sources. It also allows setting priorities for each DNS configuration source, so that whenever there are more than three DNS server candidates, only the top three candidates will get chosen.&lt;br /&gt;
&lt;br /&gt;
(Unless DNS timeouts are adjusted from defaults, only three query attempts can be made before the query times out, so configuring more than three DNS servers in &amp;lt;code&amp;gt;/etc/resolv.conf&amp;lt;/code&amp;gt; is not typically useful.)&lt;br /&gt;
&lt;br /&gt;
However, I think Ubuntu &amp;amp; Mint have migrated to using &amp;lt;code&amp;gt;systemd-resolved&amp;lt;/code&amp;gt; instead of the classic &amp;lt;code&amp;gt;glibc&amp;lt;/code&amp;gt; DNS resolver. This is true if the &amp;lt;code&amp;gt;hosts:&amp;lt;/code&amp;gt; line in &amp;lt;code&amp;gt;/etc/nsswitch.conf&amp;lt;/code&amp;gt; has &amp;lt;code&amp;gt;resolve&amp;lt;/code&amp;gt; instead of or before &amp;lt;code&amp;gt;dns&amp;lt;/code&amp;gt;. This configuration will route any DNS queries performed using glibc's hostname resolution API directly to &amp;lt;code&amp;gt;systemd-resolved&amp;lt;/code&amp;gt; without checking &amp;lt;code&amp;gt;/etc/resolv.conf&amp;lt;/code&amp;gt; at all. (Technically, &amp;lt;code&amp;gt;libnss_resolve.so&amp;lt;/code&amp;gt; is used instead of &amp;lt;code&amp;gt;libnss_dns.so&amp;lt;/code&amp;gt;.)&lt;br /&gt;
&lt;br /&gt;
But your system may have some legacy applications that won't use &amp;lt;code&amp;gt;glibc&amp;lt;/code&amp;gt;, or DNS diagnostic programs (&amp;lt;code&amp;gt;nslookup&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dig&amp;lt;/code&amp;gt; etc.) which will implement their own DNS queries, but will read &amp;lt;code&amp;gt;/etc/resolv.conf&amp;lt;/code&amp;gt; to find out the default DNS server(s) to use. Because of this, &amp;lt;code&amp;gt;systemd-resolved&amp;lt;/code&amp;gt; will by default offer a DNS-server-like interface at &amp;lt;code&amp;gt;127.0.0.53:53&amp;lt;/code&amp;gt; and (unless this compatibility interface is disabled) will configure &amp;lt;code&amp;gt;/etc/resolv.conf&amp;lt;/code&amp;gt; with a &amp;lt;code&amp;gt;nameserver 127.0.0.53&amp;lt;/code&amp;gt; line, so that even the special cases will end up using &amp;lt;code&amp;gt;systemd-resolved&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;resolvectl&amp;lt;/code&amp;gt; is primarily a tool for managing &amp;lt;code&amp;gt;systemd-resolved&amp;lt;/code&amp;gt;, whose functionality is a superset of (the classic &amp;lt;code&amp;gt;libnss_dns.so&amp;lt;/code&amp;gt; resolver library + &amp;lt;code&amp;gt;resolvconf&amp;lt;/code&amp;gt;). The &amp;lt;code&amp;gt;resolvectl&amp;lt;/code&amp;gt; command has some compatibility with &amp;lt;code&amp;gt;resolvconf&amp;lt;/code&amp;gt;, however the compatibility is not perfect: instead of modifying existing files in &amp;lt;code&amp;gt;/etc/resolvconf/resolv.conf.d/&amp;lt;/code&amp;gt; or adding a new file to &amp;lt;code&amp;gt;[/var]/run/resolvconf/interface/&amp;lt;/code&amp;gt; and then running &amp;lt;code&amp;gt;resolvconf -u&amp;lt;/code&amp;gt;, you can supply per-interface DNS server configuration by &amp;lt;code&amp;gt;resolvectl dns &amp;lt;interface name&amp;gt; 1.1.1.1 8.8.8.8&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;resolvectl domain &amp;lt;interface name&amp;gt; domain.name.example&amp;lt;/code&amp;gt; etc.&lt;br /&gt;
&lt;br /&gt;
Since you seem to have both &amp;lt;code&amp;gt;resolvconf&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;systemd-resolved&amp;lt;/code&amp;gt; installed, you may have the same situation as in Debian 11: &amp;lt;code&amp;gt;man resolvconf&amp;lt;/code&amp;gt; will actually display the man page of &amp;lt;code&amp;gt;resolvectl&amp;lt;/code&amp;gt;, including its compatibility notes. To view the man page of actual &amp;lt;code&amp;gt;resolvconf&amp;lt;/code&amp;gt;, you'll need to type &amp;lt;code&amp;gt;man 8 resolvconf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;unstable&amp;quot; in the output of &amp;lt;code&amp;gt;sudo apt changelog resolvconf&amp;lt;/code&amp;gt; doesn't mean that version is unstable ''now'': it means ''at the time that change was made'' that version was in Debian &amp;lt;code&amp;gt;unstable&amp;lt;/code&amp;gt;. For security bugfixes, you would see &amp;lt;code&amp;gt;&amp;lt;releasename&amp;gt;-security&amp;lt;/code&amp;gt; in place of &amp;lt;code&amp;gt;unstable&amp;lt;/code&amp;gt;. The changelogs are part of the history of the individual package: they won't be rewritten as the package moves from Debian unstable to testing and onward to stable, or from unstable/testing to Ubuntu, Mint or other distributions which draw from Debian.&lt;/div&gt;</summary>
		<author><name>Jayctheriot</name></author>
	</entry>
</feed>