<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[ubuntu 域名无法解析]]></title><description><![CDATA[<p dir="auto">For years it’s been simple to set up DNS on a Linux machine. Just add a couple of entries to /etc/resolv.conf and you’re done.</p>
<h1>Use Google's public DNS servers.</h1>
<p dir="auto">nameserver 8.8.4.4<br />
nameserver 8.8.8.8<br />
But things change and now it’s not that simple. If you now edit /etc/resolv.conf on Ubuntu you’ll find that the edits are ephemeral. If you restart (or even hibernate) your machine then they’ll be overwritten by default content.</p>
<p dir="auto">nameserver 127.0.0.53<br />
search Home<br />
This is pretty simple to fix though.</p>
<p dir="auto">Install the resolvconf package.</p>
<p dir="auto">sudo apt install resolvconf<br />
Edit /etc/resolvconf/resolv.conf.d/head and add the following:</p>
<h1>Make edits to /etc/resolvconf/resolv.conf.d/head.</h1>
<p dir="auto">nameserver 8.8.4.4<br />
nameserver 8.8.8.8<br />
Restart the resolvconf service.</p>
<p dir="auto">sudo service resolvconf restart<br />
Fix should be permanent.</p>
]]></description><link>http://an.forum.genostack.com/topic/81/ubuntu-域名无法解析</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 12:32:39 GMT</lastBuildDate><atom:link href="http://an.forum.genostack.com/topic/81.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Sep 2020 06:56:17 GMT</pubDate><ttl>60</ttl></channel></rss>