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 184.108.40.206 and 220.127.116.11
- Edit the following file,
- change the line
- Now, Edit the file
/etc/sysconfig/networkand add the DNS entries after the existing contents.
NETWORKING=yes NOZEROCONF=yes DNS1=18.104.22.168 DNS2=22.214.171.124
- Then, restart your network service
- Now check and verify the DNS servers in