There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

nelsnelson ,
@nelsnelson@hexbear.net avatar

Via ChatGPT 4 (accuracy unverified):

Yes, you can configure systemd-resolved to use the DNS servers in the order provided without dynamically switching based on speed. Here’s how you can do it:

  1. Edit the resolved configuration file:

    Open the resolved.conf file in a text editor:

    
    <span style="color:#323232;">sudo nano /etc/systemd/resolved.conf
    </span>
    
  2. Modify or add the following line:

    
    <span style="color:#323232;">DNS</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">`</span><span style="color:#323232;">IP_of_pihole</span><span style="color:#183691;">` </span><span style="color:#323232;">`IP_of_mikrotik`
    </span><span style="color:#323232;">DNSStubListener</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">no
    </span><span style="color:#323232;">FallbackDNS</span><span style="font-weight:bold;color:#a71d5d;">=
    </span>
    

    Replace IP_of_pihole and IP_of_mikrotik with your actual DNS IP addresses. This tells systemd-resolved to only use the DNS servers in the order you’ve specified.

  3. Prevent automatic DNS changes by network manager:

    If you’re using NetworkManager, create a drop-in configuration to prevent it from overriding DNS settings:

    
    <span style="color:#323232;">sudo mkdir -p /etc/NetworkManager/conf.d/
    </span><span style="color:#323232;">sudo nano /etc/NetworkManager/conf.d/dns.conf
    </span>
    

    Add the following content:

    
    <span style="color:#323232;">[main]
    </span><span style="color:#323232;">dns</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#183691;">none
    </span>
    
  4. Restart services:

    After making these changes, restart systemd-resolved and NetworkManager:

    
    <span style="color:#323232;">sudo systemctl restart systemd-resolved
    </span><span style="color:#323232;">sudo systemctl restart NetworkManager
    </span>
    

This should ensure that your system uses the DNS servers in the order provided without any automatic switching.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines