Jarno Elonen
2018-10-09 13:57:52 UTC
Is it possible to expand hosts file entries against multiple domains
with Dnsmasq?
Or perhaps setup a DNAME-like aliasing of hosts in one domain to another
domain?
To clarify, if my "/etc/hosts" contained...
1.2.3.4 host1
4.5.6.7 host2
...and my domains were "old-domain.com" and "new-domain.com", I'd like
to somehow configure dnsmasq to handle all these queries:
host1 --> 1.2.3.4
host2 --> 4.5.6.7
host1.old-domain.com --> 1.2.3.4
host2.old-domain.com --> 4.5.6.7
host1.new-domain.com --> 1.2.3.4
host2.new-domain.com --> 4.5.6.7
-Jarno
with Dnsmasq?
Or perhaps setup a DNAME-like aliasing of hosts in one domain to another
domain?
To clarify, if my "/etc/hosts" contained...
1.2.3.4 host1
4.5.6.7 host2
...and my domains were "old-domain.com" and "new-domain.com", I'd like
to somehow configure dnsmasq to handle all these queries:
host1 --> 1.2.3.4
host2 --> 4.5.6.7
host1.old-domain.com --> 1.2.3.4
host2.old-domain.com --> 4.5.6.7
host1.new-domain.com --> 1.2.3.4
host2.new-domain.com --> 4.5.6.7
-Jarno