Changing Private DNS in AWS

1

I'm uploading some machines in AWS and I need to change the Private DNS of the machines, initially I'm trying to change in a linux, I do not know if this change is internal to AWS machine or ADM ... I changed the host and It's the name I want, but when I try to drip, it's not working ... Could you help me?

    
asked by anonymous 07.04.2015 / 20:59

1 answer

1

If you want to access your servers by example.com instead of the name they generate, you will have to configure your own DNS server.

By default, AWS VPC manages DHCP for you and comes with Amazon's DNS Server.

You can read the options at your disposal to resolve the issue:

DHCP Options Sets

  

domain-name-servers

     

The IP addresses of up to four domain name servers, or AmazonProvidedDNS. The default DHCP option set specifies AmazonProvidedDNS. If you specify more than one domain name server, separate them with commas.

     

domain-name

     

If you're using AmazonProvidedDNS in us-east-1, specify ec2.internal. If you are 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).

     

Important

     

Some Linux operating systems accept multiple domain names separated by spaces. However, other Linux operating systems and Windows treat the value as a single domain, which results in unexpected behavior. If your DHCP options set is associated with a VPC that has instances with multiple operating systems, specify only one domain name.

Free translation:

  

domain-name-servers

     

The IP addresses of up to four domain name servers, or AmazonProvidedDNS. The default DHCP option set specifies AmazonProvidedDNS. If you specify server more than one domain name, separate them with commas.

     

domain-name

     

If you are using AmazonProvidedDNS in us-east-1, specify ec2.internal. If you are using AmazonProvidedDNS in another region, specify region.compute.internal (for example, ap-northeast-1.compute.internal). If not, specify a domain name (for example, MyCompany.com).

     

Important

     

Some Linux operating systems accept multiple domain names separated by spaces. However, other Linux and Windows operating systems treat the value as a single domain, which results in unexpected behavior. If your defined DHCP options are associated with a VPC that has cases with multiple operating systems, specify only one domain name.

Alternative

Since you can not change without implementing your own DNS servers, you can easily refer to it with another name by creating a CNAME registry, which will have the desired effect.

For this purpose, in the DNS zones of the site yesterday you have your example.com , you add a CNAME registry type:

meuNovoNovo IN CNAME meuNomeAntigo.

In this way, when you access meuNovoNovo , the server where it is registered will indicate that it should look for the information in meuNomeAntigo .

    
07.04.2015 / 23:03