AWS SDK for .NET Documentation
CreateDhcpOptions Method (request)
Amazon ► Amazon.EC2 ► AmazonEC2Client ► CreateDhcpOptions(CreateDhcpOptionsRequest)
Did this page help you? Yes No Tell us about it...

Creates a set of DHCP options for your VPC. After creating the set, you must associate it with the VPC, causing all existing and new instances that you launch in the VPC to use this set of DHCP options. The following are the individual DHCP options you can specify. For more information about the options, see RFC 2132 .

- domain-name-servers - The IP addresses of up to four domain name servers, or AmazonProvidedDNS . The default DHCP option set specifies AmazonProvidedDNS . If specifying more than one domain name server, specify the IP addresses in a single parameter, separated by commas.
- domain-name - If you're using AmazonProvidedDNS in us-east-1 , specify ec2.internal . If you're using AmazonProvidedDNS in another region, specify region.compute.internal (for example, ap-northeast-1.compute.internal ). Otherwise, specify a domain name (for example, MyCompany.com ).
- ntp-servers - The IP addresses of up to four Network Time Protocol (NTP) servers.
- netbios-name-servers - The IP addresses of up to four NetBIOS name servers.
- netbios-node-type - The NetBIOS node type (1, 2, 4, or 8). We recommend that you specify 2 (broadcast and multicast are not currently supported). For more information about these node types, see RFC 2132 .

For more information about DHCP options, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide .

Declaration Syntax

C#

    public CreateDhcpOptionsResponse CreateDhcpOptions(
    	CreateDhcpOptionsRequest request
    )

Parameters

request (CreateDhcpOptionsRequest)
  Create Dhcp Options request

Return Value
Create Dhcp Options Response from the service
Exceptions

Exception | Condition
--- | ---
WebException |
AmazonEC2Exception |

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)