Skip to content

Commit a106845

Browse files
authored
Merge pull request #1956 from choznerol/doc-replace-deprecated-useHostResolver
docs: replace deprecated `useHostResolver` with new `hostResolver.enabled`
2 parents df53f57 + 7320000 commit a106845

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/default.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ hostResolver:
428428
# guest.name: 127.1.1.1
429429
# host.name: host.lima.internal
430430

431-
# If useHostResolver is false, then the following rules apply for configuring dns:
431+
# If hostResolver.enabled is false, then the following rules apply for configuring dns:
432432
# Explicitly set DNS addresses for qemu user-mode networking. By default qemu picks *one*
433433
# nameserver from the host config and forwards all queries to this server. On macOS
434434
# Lima adds the nameservers configured for the first host interface in service order,

website/content/en/docs/Config/Network/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The loopback addresses of the host is `192.168.5.2` and is accessible from the g
3535

3636
The DNS.
3737

38-
If `useHostResolver` in `lima.yaml` is true, then the hostagent is going to run a DNS server over tcp and udp - each on a separate randomly selected free port. This server does a local lookup using the native host resolver, so it will deal correctly with VPN configurations and split-DNS setups, as well as mDNS, local `/etc/hosts` etc. For this the hostagent has to be compiled with `CGO_ENABLED=1` as default Go resolver is [broken](https://github.com/golang/go/issues/12524).
38+
If `hostResolver.enabled` in `lima.yaml` is true, then the hostagent is going to run a DNS server over tcp and udp - each on a separate randomly selected free port. This server does a local lookup using the native host resolver, so it will deal correctly with VPN configurations and split-DNS setups, as well as mDNS, local `/etc/hosts` etc. For this the hostagent has to be compiled with `CGO_ENABLED=1` as default Go resolver is [broken](https://github.com/golang/go/issues/12524).
3939

4040
These tcp and udp ports are then forwarded via iptables rules to `192.168.5.3:53`, overriding the DNS provided by QEMU via slirp.
4141

@@ -55,7 +55,7 @@ DNS over tcp is rarely used. It is usually only used either when user explicitly
5555

5656
During initial cloud-init bootstrap, `iptables` may not yet be installed. In that case the repo server is determined using the slirp DNS. After `iptables` has been installed, the forwarding rule is applied, switching over to the hostagent DNS.
5757

58-
If `useHostResolver` is false, then DNS servers can be configured manually in `lima.yaml` via the `dns` setting. If that list is empty, then Lima will either use the slirp DNS (on Linux), or the nameservers from the first host interface in service order that has an assigned IPv4 address (on macOS).
58+
If `hostResolver.enabled` is false, then DNS servers can be configured manually in `lima.yaml` via the `dns` setting. If that list is empty, then Lima will either use the slirp DNS (on Linux), or the nameservers from the first host interface in service order that has an assigned IPv4 address (on macOS).
5959

6060
## VMNet networks
6161

0 commit comments

Comments
 (0)