New answers tagged dns
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 ...
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!
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 ...
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 ...
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
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
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 ...
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, ...
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 ...
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 ...
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 ...
Top 50 recent answers are included
Related Tags
dns × 1366networking × 232
linux × 176
bind × 166
debian × 126
dnsmasq × 112
resolv.conf × 112
ubuntu × 109
centos × 86
dhcp × 66
systemd-resolved × 65
networkmanager × 61
ip × 47
hostname × 45
bind9 × 44
dig × 42
hosts × 40
iptables × 39
vpn × 39
domain × 38
openvpn × 37
systemd × 32
ping × 32
fedora × 31
ssh × 28