IPInterfaceProperties.IsDynamicDnsEnabled Eigenschaft

Definition

Ruft einen Boolean Wert ab, der angibt, ob diese Schnittstelle so konfiguriert ist, dass die IP-Adressinformationen automatisch beim Domain Name System (DNS) registriert werden.

public:
 abstract property bool IsDynamicDnsEnabled { bool get(); };
public abstract bool IsDynamicDnsEnabled { get; }
member this.IsDynamicDnsEnabled : bool
Public MustOverride ReadOnly Property IsDynamicDnsEnabled As Boolean

Eigenschaftswert

truewenn diese Schnittstelle so konfiguriert ist, dass automatisch eine Zuordnung zwischen der dynamischen IP-Adresse und statischen Domänennamen registriert wird; andernfalls . false

Beispiele

Im folgenden Codebeispiel wird der Wert dieser Eigenschaft angezeigt.

public static void DisplayDnsConfiguration()
{
    NetworkInterface[] adapters = NetworkInterface.GetAllNetworkInterfaces();
    foreach (NetworkInterface adapter in adapters)
    {
        IPInterfaceProperties properties = adapter.GetIPProperties();
        Console.WriteLine(adapter.Description);
        Console.WriteLine("  DNS suffix .............................. : {0}",
            properties.DnsSuffix);
        Console.WriteLine("  DNS enabled ............................. : {0}",
            properties.IsDnsEnabled);
        Console.WriteLine("  Dynamically configured DNS .............. : {0}",
            properties.IsDynamicDnsEnabled);
    }
    Console.WriteLine();
}
Public Shared Sub DisplayDnsConfiguration() 
    Dim adapters As NetworkInterface() = NetworkInterface.GetAllNetworkInterfaces()
    Dim adapter As NetworkInterface
    For Each adapter In  adapters
        Dim properties As IPInterfaceProperties = adapter.GetIPProperties()
        Console.WriteLine(adapter.Description)
        Console.WriteLine("  DNS suffix................................. :{0}", properties.DnsSuffix)
        Console.WriteLine("  DNS enabled ............................. : {0}", properties.IsDnsEnabled)
        Console.WriteLine("  Dynamically configured DNS .............. : {0}", properties.IsDynamicDnsEnabled)
    Next adapter

End Sub

Hinweise

Mit dynamischem DNS kann ein Client die DNS-Server darüber informieren, dass seine dynamische IP-Adresse dem statischen Hostnamen zugeordnet ist.

Gilt für: