feat: add section on fixing mdns with resolved
This commit is contained in:
17
README.md
17
README.md
@@ -138,3 +138,20 @@ dev () {
|
||||
esac
|
||||
}
|
||||
```
|
||||
|
||||
## Fix `systemd-resolved` for `.dev.local`
|
||||
|
||||
If `getent hosts yourdomain.dev.local` returns nothing while
|
||||
`dig yourdomain.dev.local @172.157.5.249` works, `systemd-resolved` is routing `.local` to mDNS instead of DNS.
|
||||
|
||||
```bash
|
||||
sudo mkdir -p /etc/systemd/resolved.conf.d
|
||||
sudo tee /etc/systemd/resolved.conf.d/localcerts.conf >/dev/null <<EOF
|
||||
[Resolve]
|
||||
DNS=172.157.5.249
|
||||
Domains=~dev.local
|
||||
MulticastDNS=no
|
||||
LLMNR=no
|
||||
EOF
|
||||
sudo systemctl restart systemd-resolved
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user