dnsmasq 最新版本
截至 2023 年 10 月,dnsmasq 的最新版本是 76,发布于 2023 年 7 月。
如何下载
可以通过以下方式下载最新版本:
-
dnsmasq 官方网站
- 访问 https://dnsmasq.org
- 点击下载按钮,选择适合你的操作系统(Windows、Linux、macOS 等)。
-
GitHub
- 克隆仓库并进入目录:
git clone https://github.com/dnsmasq/dnsmasq.git cd dnsmasq
- 查看最新版本:
git tag
- 克隆仓库并进入目录:
-
包管理器
- Linux:
- 使用
apt或yum:sudo apt install dnsmasq
- 使用
- macOS:
- 使用 Homebrew:
brew install dnsmasq
- 使用 Homebrew:
- Linux:
安装说明
根据你的操作系统进行安装:
-
Windows
- 双击下载的
.exe文件,按照提示安装。
- 双击下载的
-
Linux
- 通过包管理器安装:
sudo apt update && sudo apt install dnsmasq
- 或者从源代码编译:
cd dnsmasq make install
- 通过包管理器安装:
-
macOS
- 使用
brew安装:brew install dnsmasq
- 使用
配置
打开配置文件(默认为 /etc/dnsmasq/dnsmasq.conf)并添加以下内容:
interface= server=192.168.1.1/24 dhcp-range=192.168.1.2,192.168.1.3,255.255.255.,24h
启动
在 Linux 和 macOS 上启动服务:
sudo systemctl start dnsmasq sudo systemctl enable dnsmasq
在 Windows 上,启动服务后设置自动启动。
验证
确保 DNS 和 DHCP 服务正常运行,访问 http://localhost:548 或检查网络设置。
希望这些信息对你有帮助!









