<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 27, 2020 at 4:07 PM Chris Green <<a href="mailto:cl@isbd.net">cl@isbd.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I want to add the option "options single-request" to my<br>
/etc/resolv.conf file. As this file is actually a symlink to a file<br>
created dynamically by systemd at startup it isn't immediately obvious<br>
how to do this.<br>
<br>
So, that's the question, how does one add options to /etc/resolv.conf<br>
under systemd?<br>
<br>
-- <br>
Chris Green<br></blockquote><div> </div><div>Hi Chris! (And list)</div><div><br></div><div>Do you have resolvconf installed? If so, you can simply edit the head file, which you should find at /etc/resolvconf/resolv.conf.d/head which you can edit with sudo nano. </div><div><br></div><div>If you don't have it installed, and wish to use it to help with this, do the following:</div><div><br></div><div>sudo apt update<br>sudo apt install resolvconf<br></div><div>sudo systemctl status resolvconf.service<br></div><div><br></div><div>If it's not already running for some reason, do the following:</div><div><br></div><div>sudo systemctl start resolvconf.service<br>sudo systemctl enable resolvconf.service<br>sudo systemctl status resolvconf.service<br></div><div><br></div><div>If that works as expected, you then just do:</div><div><br></div><div>sudo nano /etc/resolvconf/resolv.conf.d/head<br></div><div><br></div><div>and add what you want to the file. Save your changes, and then:</div><div><br></div><div>sudo systemctl start resolvconf.service<br></div><div><br></div><div>At this point, you should basically be done. </div><div><br></div><div>NEAT find on options single-request! I hadn't seen that before, but it makes a lot of sense, and I'm now using it as well!</div></div></div>