InternetGatewayDevice.WANDevice.{i}.WANConnectionDevice.{i}.WANPPPConnection.{i}.DNSEnabled
Whether or not the device SHOULD attempt to query a DNS server across this connection.
是否禁用Router 使用DNS
InternetGatewayDevice.WANDevice.{i}.WANConnectionDevice.{i}.WANPPPConnection.{i}.DNSServers
Comma-separated list of DNS server IP addresses for this connection. Support for more than three DNS Servers is OPTIONAL.
指的是Router WAN 端所使用的DNS.
InternetGatewayDevice.WANDevice.{i}.WANConnectionDevice.{i}.WANPPPConnection.{i}.DNSOverrideAllowed
If DNSOverrideAllowed = False:
1. WAN DNS Configuration from WebGUI is allowed
2. WAN DNS configuration from ACS is allowed
3. If Dynamic WAN DNS is being used, automatic DNS from DHCP is allowed
4. If Static WAN DNS is configured, automatic DNS from DHCP is denied
If DNSOverrideAllowed = True:
1. WAN DNS Configuration from WebGUI is allowed
2. WAN DNS configuration from ACS is denied
3. If Dynamic WAN DNS is being used, automatic DNS from DHCP is allowed(指的是WAN DNS 的获取方式是DHCP)
4. If Static WAN DNS is configured, DNSOverrideAllowed must change to False
InternetGatewayDevice.LANDevice.{i}.LANHostConfigManagement.DNSServers
Comma-separated list of DNS server IP addresses to serve to DHCP LAN devices. Support for more than three DNS Servers is OPTIONAL.
LAN PC 获取的Router 分配的DNS.
InternetGatewayDevice.LANDevice.{i}.LANHostConfigManagement.X_<VENDOR>_DNSProxyEnabled
Specifies whether the Gateway will be proxying DNS requests to DHCP clients. If set to True, gateway must return it's LAN IP Address as the primary DNS Server (e.g. 192.168.0.1). Secondary and tertiary DNS Server may be determined by other parameters. If set to False, Gateway LAN IP Address must not automatically be returned as the primary DNS Server.
此时Router 充当的是DNSProxy
InternetGatewayDevice.LANDevice.{i}.LANHostConfigManagement.X_<vendor>_DNSUseAllocatedWAN
If Normal, the address pool is directly configured by the ACS.
If Passthrough, and PassthroughMACAddress is empty, the configured values of the MinAddress,
MaxAddress, SubnetMask and DNSServers parameters are ignored. The corresponding
address pool values are instead taken from the WAN connection specified by AssociatedConn-
Ection.
If Passthrough, and PassthroughMACAddress is non-empty, the LAN Host identified by
PassthroughMACAddress is given a WAN IP address from the WAN connection specified by
AssociatedConnection. Other LAN Hosts are treated as for Normal.
InternetGatewayDevice.LANDevice.{i}.LANHostConfigManagement.PassthroughMACAddress
Hardware address of the LAN Host that is used to passthrough a WAN IP address if UseAllocatedWAN is Passthrough. Note: An empty address indicates that no specific
应用实例:
1 默认情况下,客户希望使用ISP的DNS Server (modem proxying DNS requests to WAN)
WAN DNS:
SPV DSNEnabled=True
SPV DNSOverrideAllowed=True
LAN DNS:
SPV X_<VENDOR>_DNSProxyEnabled=True
SPV DNSUseAllocatedWAN=Normal
此时Modem 充当的是DNS Proxy,所以LAN PC 应该获取Modem IP 作为DNS.
2 LAN 端 ,客户希望使用ISP的DNS Server (without the modem proxying the DNS requests:)
WAN DNS:
SPV DNSEnabled=True
SPV DNSOverrideAllowed=True
LAN DNS:
SPV X_<VENDOR>_DNSProxyEnabled=False
SPV DNSUseAllocatedWAN=Passthrough
SPV DNSAssociatedConnection=<value from GPV IGD.Layer3Forwarding.DefaultConnectionService>
SPV PassthroughMACAddress=NULL
LAN PC 应该获取Modem WAN端DNS 作为 自己 的DNS Server.
3 在局域网中,客户希望使用自己的DSN Server (In order to host their own intranet content.)
WAN DNS:
SPV DSNEnabled=True
SPV DNSOverrideAllowed=True
LAN DNS:
SPV DNSServers=<LANIP1>[,<LANIP2>]
SPV X_<VENDOR>_DNSProxyEnabled=False
SPV DNSUseAllocatedWAN=Normal
Lan Client 会获得InternetGatewayDevice.LANDevice.1.LANHostConfigManagement.DNSServers 设置的DNS .
4 Modem 获取自己设置的DNS
WAN DNS:
SPV DSNEnabled=True
SPV DNSOverrideAllowed=False
SPV DNSServers=<LANIP1>[,<LANIP2>]
LAN DNS:
SPV X_<VENDOR>_DNSProxyEnabled=True
SPV DNSUseAllocatedWAN=Normal
5 Customer wants a certain LAN host to be assigned the same DNS Servers as the modem's WAN DNS Servers, while all other LAN hosts use the default DNS Server(s)
WAN DNS:
SPV DNSEnabled=True
SPV DNSOverrideAllowed=True
LAN DNS:
SPV X_<VENDOR>_DNSProxyEnabled=False
SPV DNSUseAllocatedWAN=Passthrough
SPV DNSAssociatedConnection=<value from GPV IGD.Layer3Forwarding.DefaultConnectionService>
SPV PassthroughMACAddress=<MAC Address of certain LAN host>