New answers tagged

0 votes

Override Ubuntu 20.04 DNS using systemd-resolved

Let the iface variable contain your main interface name, then you can set your DNS addresses this way : $ sudo resolvectl dns $iface x.y.z.t1 x.y.z.t2 $ resolvectl dns $iface Link 2 (ensX): x.y.z.t1 ...
user avatar
  • 1,303
0 votes
Accepted

How to determine the active systemd-resolved link number using a script?

resolvectl status | grep -PB1 'Current Scopes.*\bDNS\b' | head -n 1 is the best way to do it!
user avatar
0 votes
Accepted

bind9 configuration file PROBLEM

How can I set a higher value ? Get bind-9.14 sources, change the value of the MAX_MIN_CACHE_TTL and compile the bind package for yourself How is it possible? Debian Before bind-9.13 Debian had ...
user avatar
  • 247
0 votes

Unable to resolve domain names after router upgrade. How do I correct this DNS configuration failure with systemd-resolved?

I'm answering my own question to share the workaround I ended up using, but I'm not inclined to accept it, because I think that the operating system should be capable of configuring the DNS server ...
user avatar
  • 2,195
0 votes

Apline Linux How to force static nameserver if inet dhcp

Harry's answer is a better approach. But you can also just make resolv.conf immutable: chattr +i /etc/resolv.conf
user avatar
  • 4,603
0 votes

Apline Linux How to force static nameserver if inet dhcp

set RESOLV_CONF="no" in /etc/udhcpc/udhcpc.conf. See https://wiki.alpinelinux.org/wiki/Udhcpc
user avatar
  • 164
2 votes
Accepted

How To Change DNS Server?

You can of course tell NetworkManager not to write /etc/resolv.conf and do it yourself. However, usually the DNS server depends on the network to which you are connecting, and isn't that static. Which ...
user avatar
  • 1,286
1 vote

How To Change DNS Server?

The following method is from the RedHat documentation, but also works for me on Debian. It probably works the same or similarly for Arch Linux using systemd and NetworkManager. As the root user, ...
user avatar
  • 2,216
3 votes

nslookup knows while ping doesn't know; how is this possible?

nslookup and ping don’t use the same mechanisms to resolve host names. nslookup specifically issues DNS requests; by default, it contacts the name servers configured in /etc/resolv.conf. ping resolves ...
user avatar
0 votes

Remove a DNS server from systemd-resolved?

I second Ian D. Allen comment : 1- the resolvectl revert command does not remove DNS from Global section 2- one cannot obviously revert an interface, tun0 which is actually down So the question ...
user avatar
1 vote
Accepted

Is there a DNS-based policy like SPF or DMARC to require STARTTLS sessions for a given domain?

There is the MTA-STS standard for exactly this purpose. It is similar to HSTS in that it declares that the server should be accessed by TLS only. Unlike HSTS it is declared in DNS, so this feature ...
user avatar

Top 50 recent answers are included