Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:host_dns [2024/02/24 13:44] – [DNS-Server] tmadelinux:host_dns [2024/02/24 14:01] (current) – [DNS-/ DHCP] tmade
Line 36: Line 36:
 [[Linux:BIND]] [[Linux:BIND]]
      
-==== DNS-/ DHCP ====+==== DNS-/ DHCP / dhclient.conf====
  
-If you want to **override** the DNS servers **provided by DHCP entirely** and force the system to use the ones you provide, use the supersede entry:+If you want to **override** the DNS servers **provided by DHCP entirely** and force the system to use the ones you provide, use the **supersede** entry:
  
   /etc/dhcp/dhclient.conf   /etc/dhcp/dhclient.conf
   supersede domain-name-servers 127.0.0.1;   supersede domain-name-servers 127.0.0.1;
 +  supersede domain-name-servers 12.34.56.78, 12.34.56.79; 
 <code> <code>
 cat /etc/resolv.conf cat /etc/resolv.conf
 nameserver 127.0.0.1 nameserver 127.0.0.1
 </code> </code>
 +
 +"**prepend**" add servers to those provided by dhcp (work as a fallback):
 +
 +  prepend domain-name-servers 12.34.56.78, 12.34.56.79;
linux/host_dns.txt · Last modified: 2024/02/24 14:01 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki