This project is read-only.

IpNameAssign option

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

Jun 9, 2015 at 3: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 7:43 AM
Edited Jun 9, 2015 at 8:52 AM
Hi Jeff,
please look at this
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.
Jun 11, 2015 at 4: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.