Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use all canonical site hosts for Landrush TLD #1077

Merged
merged 3 commits into from
Apr 12, 2019

Conversation

knowler
Copy link
Member

@knowler knowler commented Apr 10, 2019

This is useful if you want to use WordPress’ multisite domain mapping locally and if you’ve specified additional canonical hosts which are not sub-domains of the main canonical host.

In other words it lets you rename your domains from client.example.test to client.test and have them work (since dnsmasq via Landrush will create a /etc/resolver/ entry for the domain).

This is useful if you want to use WordPress’ multisite domain mapping
locally and if you’ve specified canonical hosts which are not
sub-domains of the main canonical host.
@knowler knowler force-pushed the landrush-tld-multiple-site-hosts branch from b4a7b3f to 07aa0fa Compare April 10, 2019 23:58
This filters out subdomains of the main hostname for the Landrush
TLD(s). This way it only adds necessary resolvers.

For example, of the following:

- `example.test` (main hostname)
- `subdomain.example.test`
- `client.test`

We tell Landrush (dnsmaq) to only create:

- `/etc/resolver/example.test`
- `/etc/resolver/client.test`

Because `example.test` handles `subdomain.example.test`.
Co-authored-by: Scott Walkinshaw <scott.walkinshaw@gmail.com>
@swalkinshaw swalkinshaw merged commit 512d8f9 into master Apr 12, 2019
@swalkinshaw swalkinshaw deleted the landrush-tld-multiple-site-hosts branch April 12, 2019 17:03
@swalkinshaw
Copy link
Member

Thanks 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants