문제

Is it possible to change only the DNS settings on iOS devices with configuration profiles?

If not, I'm guessing MDM is a possible workaround. How could this be implemented?

도움이 되었습니까?

해결책

In MDM profile check this out: IPSec > OnDemandRules >

<key>OnDemandRules</key> <array> <dict> <key>Action</key> <string>EvaluateConnection</string> <key>ActionParameters</key> <array> <dict> <key>DomainAction</key> <string>ConnectIfNeeded</string> <key>Domains</key> <array> <string>example1.com</string> <string>example2.com</string> <string>example3.com</string> </array> <key>RequiredDNSServers</key> <array> <string>mydns.com</string> </array> </dict> </array> </dict> </array>

The limitation is that the DNS request will only perform for the listed domains. Better than nothing.

UPD: I just found that using:

        <key>Domains</key>
            <array>
                <string>.</string>
            </array>

will wildcard the filter. So you'll get all DNS requests from the device, doesn't matter what domain it is.

다른 팁

This kind of functionality is not provided by the apple MDM it provides the facility which are available in iPCU (iPhone Configuration Utility)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top