en: update document.

This commit is contained in:
Nick Peng
2023-03-26 02:02:54 +08:00
parent 5ded52d4c0
commit 149a52584e
18 changed files with 1070 additions and 0 deletions

View 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.