Class MsftDnsClientServerAddress
java.lang.Object
io.github.eggy03.ferrumx.windows.entity.network.MsftDnsClientServerAddress
Immutable representation of a DNS server configuration for a particular network adapter on a Windows system.
Fields correspond to properties retrieved from the MSFT_DNSClientServerAddress class in the
root/StandardCimv2 namespace.
Together, with MsftNetIpAddress, this class aims to be
a replacement for Win32NetworkAdapterConfiguration
Usage example
MsftDnsClientServerAddress dns = MsftDnsClientServerAddress.builder()
.interfaceIndex(1)
.interfaceAlias("Ethernet")
.addressFamily(23)
.build();
// Create a modified copy
MsftDnsClientServerAddress updated = dns.toBuilder()
.addressFamily(2)
.build();
See MsftNetAdapter, for network adapter information.
See MsftNetConnectionProfile, for information regarding the current profile of a network adapter.
See MsftNetIpAddress, for IP address configuration information of a network adapter.
- Since:
- 3.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) @Nullable IntegerGets the address family of the server address.Gets a list that contains the DNS server addresses.(package private) @Nullable StringGets the user-friendly name of the server interface.(package private) @Nullable LongGets the user-friendly index of the server interface. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
interfaceIndex
Gets the user-friendly index of the server interface. It's the unique interface index number used by the network stack. -
interfaceAlias
Gets the user-friendly name of the server interface. -
addressFamily
Gets the address family of the server address.Possible values:
- 2 - IPv4
- 23 - IPv6
-
dnsServerAddresses
-
-
Constructor Details
-
MsftDnsClientServerAddress
public MsftDnsClientServerAddress()
-
-
Method Details
-
toString
-