| ▲ | JimDabell 6 hours ago | |
*.localhost works out of the box doesn’t it? You don’t need dnsmasq at all to have multiple hostnames pointing to 127.0.0.1. | ||
| ▲ | winstonwinston 4 hours ago | parent | next [-] | |
*.example-private point is to have multiple machines using private addresses such as web.example-private in A 192.168.0.100 and db1.example-private in A 192.168.0.101. If you just want to resolve 127.0.0.1 then you just resolve hostname "localhost" or use 127.0.0.1 directly. Personally i don't bother configuring custom private dns zones, instead i use reserved MDNS *.local that autoconfigure everything using machine name (hostname) and DHCP address: somehostname.local in A <dhcp assigned ip>. | ||
| ▲ | bombcar 6 hours ago | parent | prev [-] | |
You often have internal private IPs you want to resolve to things that aren't localhost | ||