LinkProperties.PrivateDnsServerName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the private DNS server name that is in use.
public string? PrivateDnsServerName { [Android.Runtime.Register("getPrivateDnsServerName", "()Ljava/lang/String;", "", ApiSince=28)] get; }
[<get: Android.Runtime.Register("getPrivateDnsServerName", "()Ljava/lang/String;", "", ApiSince=28)>]
member this.PrivateDnsServerName : string
Property Value
The private DNS server name.
- Attributes
Remarks
Returns the private DNS server name that is in use. If not null
, private DNS is in strict mode. In this mode, applications should ensure that all DNS queries are encrypted and sent to this hostname and that queries are only sent if the hostname's certificate is valid. If null
and #isPrivateDnsActive
is true
, private DNS is in opportunistic mode, and applications should ensure that DNS queries are encrypted and sent to a DNS server returned by #getDnsServers
. System DNS will handle each of these cases correctly, but applications implementing their own DNS lookups must make sure to follow these requirements.
Java documentation for android.net.LinkProperties.getPrivateDnsServerName()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.