带有 dnsmasq 的通配符子域 [英] Wildcard subdomains with dnsmasq

查看:41
本文介绍了带有 dnsmasq 的通配符子域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个已映射到 domain.tld 的设备.我现在想为所有子域 *.domain.tld 创建一个通配符,以便它们也映射到 domain.tld 的 ip.如何使用 dnsmasq 执行此操作?

I have a device that is already mapped to domain.tld. I now want to create a wildcard for all subdomains *.domain.tld so that they are mapped to the ip of domain.tld, too. How do I do this with dnsmasq?

推荐答案

dnsmasq.conf文件中,添加一行

address=/.domain.tld/192.168.0.1

但是使用您实际想要的 IP 作为结束位

But use the IP you actually want as that end bit

这篇关于带有 dnsmasq 的通配符子域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆