en: update document.
This commit is contained in:
19
en/docs/config/resolv-dnsmasq-lease.md
Normal file
19
en/docs/config/resolv-dnsmasq-lease.md
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
hide:
|
||||
- toc
|
||||
---
|
||||
|
||||
# Parsing Local Hostnames
|
||||
|
||||
SmartDNS can support the resolution of local hostname->IP address by cooperating with DNSMASQ dhcp lease file. SmartDNS can be configured to read the lease file of dnsmasq and support resolution. The specific configuration parameters are as follows
|
||||
(Note that DNSMASQ lease files may vary from system to system and need to be configured according to actual conditions)
|
||||
|
||||
```shell
|
||||
dnsmasq-lease-file /var/lib/misc/dnsmasq.leases
|
||||
```
|
||||
|
||||
After the configuration is completed, you can directly connect to the corresponding machine using the hostname. However, it should be noted that:
|
||||
|
||||
1. The Windows system defaults to using mDNS to resolve addresses. If you need to use smartdns for resolution under Windows, you need to add `.` after the hostname to indicate the use of DNS resolution, such as `ping smartdns.`
|
||||
1. SmartDNS will monitor file changes periodically and automatically load mapping relationships that have changed.
|
||||
|
||||
Reference in New Issue
Block a user