WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

RAS

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

RasEntrySet and Setting DNS IP

Keywords: 	 DNS IP RasEntrySet

Question:

Using the RasEntrySet, is there any documentation\link which tells me what the "Element" and "Values" I can use. For example RasEntrySet("options", "94") I discovered by adding the 4 it allowed me to set my DNS IP.

Answer:

Ummm. Its there in the help file. A bit confusing I must admit.

RasEntrySet("options",94) does, ummm

64+16+8+4+2

64
If this flag is set, RAS displays a terminal window for user input before dialing the connection. This flag has no effect if the entry is dialed by the RasDialfunction.

16
If this flag is set, the default route for IP packets is through the dial-up adapter when the connection is active. If this flag is clear, the default route is not modified.

8
If this flag is set, RAS negotiates to use IP header compression on PPP connections. If this flag is not set, IP header compression is not negotiated.This flag corresponds to the Use IP Header Compression check box in the TCP/IP settings dialog box. It is generally advisable to set this flag because IP header compression significantly improves performance. The flag should be cleared only when connecting to a server that does not correctly negotiate IP header compression.

4
If this flag is set, RAS uses the ipaddrDns, ipaddrDnsAlt, ipaddrWins, and ipaddrWinsAlt elements to specify the name of the server addresses for the dial-up connection. If this flag is not set, RAS ignores these elements. Setting the RASEO_SpecificNameServers flag corresponds to selecting the Specify Name Server Addresses setting in the TCP/IP Settings dialog box. Clearing the RASEO_SpecificNameServers flag corresponds to selecting the Server Assigned Name Server Addresses setting in the TCP/IP Settings dialog box. Windows 95/98/ME: Currently, if a DNS address is set in the network control panel, the address set using the phone-book entry properties or retrieved from a server is ignored. In other words, the addresses in the network control panel override the addresses in the phone-book entry properties.

2
If this flag is set, RAS tries to use the IP address specified by ipaddr as the IP address for the dial-up connection. If this flag is not set, the value of the ipaddr element is ignored.Setting the RASEO_SpecificIpAddr flag corresponds to selecting the Specify an IP Address setting in the TCP/IP Settings dialog box. Clearing the RASEO_SpecificIpAddr flag corresponds to selecting the Server Assigned IP Address setting in the TCP/IP settings dialog box.Currently, an IP address set in the phone-book entry properties or retrieved from a server overrides the IP address set in the network control panel.


Article ID:   W15420
File Created: 2003:05:13:11:27:38
Last Updated: 2003:05:13:11:27:38