Update README

This commit is contained in:
Muaz Ahmad 2024-05-18 00:03:16 +05:00
parent 43411dbc8f
commit 952253104e

View file

@ -6,14 +6,14 @@ Queries the mDNS record for a given .local address, and maps it to the given sub
### CLI Args ### CLI Args
`local-etc-hosts-updater <local_domain> <ip_version> <interface>` `local-etc-hosts-updater <local_domain> <ip_version> <scope_id>`
- `local_domain` is the local domain to be queried - `local_domain` is the local domain to be queried
- `ip_version` is an enum. - `ip_version` is an enum.
- 4 will query for an IPv4 address in the `192.168.0.0/16` subnet - 4 will query for an IPv4 address in the `192.168.0.0/16` subnet
- 6 will query for a ULA IPv6 address in the `fd00::/8` subnet - 6 will query for a ULA IPv6 address in the `fd00::/8` subnet
- 0 will do both - 0 will do both
- `interface` is the interface name to query, it is required for ipv6 - `scope_id` is the interface numeric interface index as returned by `if_nametoindex`. Largely just to get around limitations on an unrooted android.
### ENV vars ### ENV vars