:doc:`EC2 <../../ec2>` / Client / enable_vpc_classic_link_dns_support

***********************************
enable_vpc_classic_link_dns_support
***********************************



.. py:method:: EC2.Client.enable_vpc_classic_link_dns_support(**kwargs)

  

  .. note::

    

    This action is deprecated.

    

   

  Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance.

   

  You must specify a VPC ID in the request.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableVpcClassicLinkDnsSupport>`_  


  **Request Syntax**
  ::

    response = client.enable_vpc_classic_link_dns_support(
        VpcId='string'
    )
    
  :type VpcId: string
  :param VpcId: 

    The ID of the VPC.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Return': True|False
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Return** *(boolean) --* 

        Returns ``true`` if the request succeeds; otherwise, it returns an error.

        
  