AWS

How to set custom DNS on CentOS7 AWS

JJ
Jobin Joseph · Founder and CEO
·Published 30 August 2016·1 min read

There may be scenarios, when you need to use a custom DNS server for your Instances. So if you are deploying your application on an CentOS 7 on AWS, lets see how can set a custom DNS server such as 8.8.8.8 and 8.8.4.4

vim /etc/sysconfig/network-scripts/ifcfg-eth0
NETWORKING=yes
NOZEROCONF=yes
DNS1=8.8.8.8
DNS2=8.8.4.4
/etc/init.d/network  restart
Jobin Joseph
Jobin Joseph, Founder and CEO
5x AWS Certified, ISO 27001:2022 Lead Implementer, 17+ years building cloud infrastructure for regulated industries.
About Jobin →

Reading this because your AWS bill or uptime is a problem?

30 minutes, direct with the founder, no sales pitch: one specific recommendation for your AWS workload.

Book a free 30-minute review
30 min Free Consultation →