ubuntu:dns:dns_name_server_switch_configuration_file
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:dns:dns_name_server_switch_configuration_file [2019/11/27 00:34] – peter | ubuntu:dns:dns_name_server_switch_configuration_file [2021/01/10 21:14] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - DNS - DNS Name Server switch configuration file ====== | ||
- | |||
- | The **/ | ||
- | |||
- | This file determines the order of the name resolution. | ||
- | |||
- | By default, the host file is checked first, then the configured DNS. There could be more options. | ||
- | |||
- | Take a look at the file: | ||
- | |||
- | <file bash / | ||
- | ... | ||
- | hosts: | ||
- | ... | ||
- | </ | ||
- | |||
- | The **hosts:** line specifies the order in which various name resolution services will be tried. This example is to: | ||
- | |||
- | 1. Begin by checking the /etc/hosts file. If that file provides an IP address for the host name in question, it is used. | ||
- | |||
- | 2. Then try the specified DNS servers. | ||
- | |||
- | This config then means that **/ | ||
- | |||
- | <WRAP tip> | ||
- | Legal entries are: | ||
- | |||
- | * compat | ||
- | * nisplus | ||
- | * nis Use NIS (NIS version 2), also called YP | ||
- | * dns Use DNS (Domain Name Service) | ||
- | * files Use the local files | ||
- | * [NOTFOUND=return] | ||
- | |||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Another example ===== | ||
- | |||
- | <file bash / | ||
- | ... | ||
- | hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 | ||
- | ... | ||
- | </ | ||
- | |||
- | The hosts: line specifies the order in which various name resolution services will be tried. The default is to: | ||
- | |||
- | 1. Begin by checking the /etc/hosts file. If that file provides an IP address for the host name in question, it is used. | ||
- | |||
- | 2. Otherwise try mdns4_minimal, | ||
- | |||
- | 3. Then try the specified DNS servers. | ||
- | |||
- | 4. The final mdns4 entry indicates mDNS will be tried for names that don't end in .local if your specified DNS servers aren't able to resolve them. This is thought to catch mDNS hosts when there is not .local TLD specified. | ||
- | |||
- | ---- | ||
- | |||
- | ===== References ===== | ||
- | |||
- | Further information on nss-mdns can be found at http:// | ||
- | |||
ubuntu/dns/dns_name_server_switch_configuration_file.1574814870.txt.gz · Last modified: 2020/07/15 09:30 (external edit)