IpNameAssign option

Jun 8, 2015 at 3:51 PM
Hi guys,
How i can change this option using dotras? which option (in RasEntry?) responds to it?

Thanks,
Maxim.
Coordinator
Jun 9, 2015 at 2:43 AM
Gonna need a bit more information than that, there is no IPNameAssign option on the enum that Microsoft exposed.
Jun 9, 2015 at 6:43 AM
Edited Jun 9, 2015 at 7:52 AM
Hi Jeff,
please look at this
https://msdn.microsoft.com/en-us/library/ee791217.aspx
and
https://msdn.microsoft.com/en-us/library/ee791559.aspx
I want to change IpNameAssign to 1, which is meaning "RRAS, when making a demand-dial connection, does not request a specific IPv4 address for the DNS and WINS servers from the remote RRAS endpoint."

P.S. IpDnsAddress and IpDns2Address corresponds to RasEntry.DnsAddress and RasEntry.DnsAddressAlt, but i can't found what option corresponds to IpNameAssign.
Coordinator
Jun 11, 2015 at 3:24 AM
DotRas doesn't deal directly with the file layout for RAS, it uses the Microsoft exposed Win32 RAS APIs. Based on what you're asking for, that should be just setting the IPAddress, DnsAddress, DnsAddressAlt, WinsAddress, and WinsAddressAlt properties on the RasEntry to null.