你们都推荐在AppVeyor的Windows上用什么替代dnsmasq?您是否有任何关于替换的安装说明或我可以看到的示例工作?在Appveyor的dnsmasq上的Windows等效
2
A
回答
1
我相信在Appveyor VM上安装脚本(使用Install-WindowsFeature)并配置标准MS DNS和DHCP并使用PowerShell配置它们非常容易。
这里是有用的PowerShell命令:
https://technet.microsoft.com/en-us/library/jj590751(v=wps.630).aspx
https://technet.microsoft.com/en-us/library/jj649850.aspx
下面是示例安装一节Appveyor.yml:
install:
- ps: |
Install-WindowsFeature -Name DNS -IncludeManagementTools -WarningAction SilentlyContinue
Install-WindowsFeature -Name DHCP -IncludeManagementTools -WarningAction SilentlyContinue
Add-DnsServerPrimaryZone -Name foo.bar -ZoneFile foo.bar.dns
Add-DhcpServerv4Scope -Name TestScope -StartRange 192.168.1.100 -EndRange 192.168.1.110 -SubnetMask 255.255.255.0
$ip = (Get-NetIPAddress -AddressFamily IPv4 | Where-Object {$_.InterfaceAlias -like '*ethernet*'}).IPAddress
Set-DHCPServerv4OptionValue -DnsDomain foo.bar -DnsServer $ip
但是,我不知道我完全理解场景。哪些机器将成为这些服务的客户? Appveyor构建正在单个虚拟机上执行,该虚拟机位于NAT后面,无法从公共Internet访问。或者你的软件会连接到本地机器的DNS/DHCP服务器,获取专用IP并注册一些名称?
另外请注意,您可以configure hosts file,这可能是您的问题更简单的解决方案。
谢谢,
伊利亚。
相关问题
- 1. 在Windows 8上等效的UserExtendedProperties.GetValue(“ANID”)
- 2. 什么是在Windows上fadvise/madvise等效?
- 3. Windows Phone的RegistryNotifyCallback等效项
- 4. Windows Phone中的OnRender等效
- 5. 在appveyor上启动redis-server
- 6. 在Windows中等效的Unix命令Powershell
- 7. iOS和Windows上的InstanceID和ANDROID_ID的等效
- 8. Windows Phone 7上的WebRequest.CreateHttp的HTTPS等效项?
- 9. Mac上的dl_iterate_phdr等效
- 10. vC++ ipconfig cmd等效于Windows
- 11. Windows Vista边栏等效
- 12. Windows <sys/file.h>等效
- 13. Windows等效于同步()
- 14. 需要Windows chmod777等效
- 15. Windows等效于/ dev/random
- 16. Windows中的EGREP和AWK等效命令
- 17. posix_ipc python与Windows等效的包?
- 18. WriteableBitmap等效于Windows库的Javascript
- 19. Windows的Cloud-Init等效物是什么?
- 20. AIX上的xlC上的CRTDBG_MAP_ALLOC等效项
- 21. 在Appveyor feed上发布nuget包
- 22. 在Linux上的联锁等效
- 23. 在Linux上的蝙蝠等效
- 24. 在Windows中加入等效物
- 25. VirtualDocumentRoot with dnsmasq
- 26. 什么是Windows 7上的等效“aspnet_regiis -lk”?
- 27. 什么是Windows 10上的docker.sock等效物?
- 28. Windows 10上的mkdir -p等效于什么?
- 29. Windows IIS上perl CGI中的$ ENV {DOCUMENT_ROOT}等效什么
- 30. 领事的dnsmasq和TLS
hosts文件不会工作,因为我需要通配符。 –