Change DNS to Coudflare 1.1.1.1 on Ubuntu 16.0.4 Server Hosted On AWS [duplicate]
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
2
down vote
favorite
This question already has an answer here:
How do I configure my DNS settings in Ubuntu server?
1 answer
I'd like to take advantage of the recent Cloudflare 1.1.1.1 DNS service on my Ubuntu 16.04 based server. Any ideas how can I implement it permanently?
The reason is that
/etc/resolv.conf
changes automatically and as the file states we shouldn't edit it manually.
What the best way to do so, for both ipv4 and ipv6?
server dns
marked as duplicate by karel, Fabby, vidarlo, Kevin Bowen, Eric Carvalho Apr 13 at 23:51
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |Â
up vote
2
down vote
favorite
This question already has an answer here:
How do I configure my DNS settings in Ubuntu server?
1 answer
I'd like to take advantage of the recent Cloudflare 1.1.1.1 DNS service on my Ubuntu 16.04 based server. Any ideas how can I implement it permanently?
The reason is that
/etc/resolv.conf
changes automatically and as the file states we shouldn't edit it manually.
What the best way to do so, for both ipv4 and ipv6?
server dns
marked as duplicate by karel, Fabby, vidarlo, Kevin Bowen, Eric Carvalho Apr 13 at 23:51
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
This question already has an answer here:
How do I configure my DNS settings in Ubuntu server?
1 answer
I'd like to take advantage of the recent Cloudflare 1.1.1.1 DNS service on my Ubuntu 16.04 based server. Any ideas how can I implement it permanently?
The reason is that
/etc/resolv.conf
changes automatically and as the file states we shouldn't edit it manually.
What the best way to do so, for both ipv4 and ipv6?
server dns
This question already has an answer here:
How do I configure my DNS settings in Ubuntu server?
1 answer
I'd like to take advantage of the recent Cloudflare 1.1.1.1 DNS service on my Ubuntu 16.04 based server. Any ideas how can I implement it permanently?
The reason is that
/etc/resolv.conf
changes automatically and as the file states we shouldn't edit it manually.
What the best way to do so, for both ipv4 and ipv6?
This question already has an answer here:
How do I configure my DNS settings in Ubuntu server?
1 answer
server dns
server dns
edited Apr 13 at 2:34
![](https://i.stack.imgur.com/WwSSv.jpg?s=32&g=1)
![](https://i.stack.imgur.com/WwSSv.jpg?s=32&g=1)
ubashu
2,23721736
2,23721736
asked Apr 13 at 2:03
![](https://i.stack.imgur.com/bisiX.jpg?s=32&g=1)
![](https://i.stack.imgur.com/bisiX.jpg?s=32&g=1)
Ashish
112
112
marked as duplicate by karel, Fabby, vidarlo, Kevin Bowen, Eric Carvalho Apr 13 at 23:51
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by karel, Fabby, vidarlo, Kevin Bowen, Eric Carvalho Apr 13 at 23:51
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
This is more or less "how do I set a static IP"
Follow this answer for a similar question on Ubuntu 12.04 which is more or less identical in application.
The relevant bit is your Name server
How do I configure my DNS settings in Ubuntu server?
Though in keeping with many concerns of links relevant info from that question,
the correct file your looking for is
/etc/network/interfaces
and the part to modify should look similar to this
The primary network interface
auto eth0
iface eth0 inet static
address 192.168.X.X
netmask 255.255.255.0
gateway 192.168.X.X
dns-nameservers 1.1.1.1
This is the officially suggested method for changing/adding name servers from Ubuntu main help guides.
https://help.ubuntu.com/lts/serverguide/network-configuration.html#name-resolution
To configure the resolver, add the IP addresses of the nameservers that are appropriate for your network in the file /etc/network/interfaces.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
This is more or less "how do I set a static IP"
Follow this answer for a similar question on Ubuntu 12.04 which is more or less identical in application.
The relevant bit is your Name server
How do I configure my DNS settings in Ubuntu server?
Though in keeping with many concerns of links relevant info from that question,
the correct file your looking for is
/etc/network/interfaces
and the part to modify should look similar to this
The primary network interface
auto eth0
iface eth0 inet static
address 192.168.X.X
netmask 255.255.255.0
gateway 192.168.X.X
dns-nameservers 1.1.1.1
This is the officially suggested method for changing/adding name servers from Ubuntu main help guides.
https://help.ubuntu.com/lts/serverguide/network-configuration.html#name-resolution
To configure the resolver, add the IP addresses of the nameservers that are appropriate for your network in the file /etc/network/interfaces.
add a comment |Â
up vote
2
down vote
This is more or less "how do I set a static IP"
Follow this answer for a similar question on Ubuntu 12.04 which is more or less identical in application.
The relevant bit is your Name server
How do I configure my DNS settings in Ubuntu server?
Though in keeping with many concerns of links relevant info from that question,
the correct file your looking for is
/etc/network/interfaces
and the part to modify should look similar to this
The primary network interface
auto eth0
iface eth0 inet static
address 192.168.X.X
netmask 255.255.255.0
gateway 192.168.X.X
dns-nameservers 1.1.1.1
This is the officially suggested method for changing/adding name servers from Ubuntu main help guides.
https://help.ubuntu.com/lts/serverguide/network-configuration.html#name-resolution
To configure the resolver, add the IP addresses of the nameservers that are appropriate for your network in the file /etc/network/interfaces.
add a comment |Â
up vote
2
down vote
up vote
2
down vote
This is more or less "how do I set a static IP"
Follow this answer for a similar question on Ubuntu 12.04 which is more or less identical in application.
The relevant bit is your Name server
How do I configure my DNS settings in Ubuntu server?
Though in keeping with many concerns of links relevant info from that question,
the correct file your looking for is
/etc/network/interfaces
and the part to modify should look similar to this
The primary network interface
auto eth0
iface eth0 inet static
address 192.168.X.X
netmask 255.255.255.0
gateway 192.168.X.X
dns-nameservers 1.1.1.1
This is the officially suggested method for changing/adding name servers from Ubuntu main help guides.
https://help.ubuntu.com/lts/serverguide/network-configuration.html#name-resolution
To configure the resolver, add the IP addresses of the nameservers that are appropriate for your network in the file /etc/network/interfaces.
This is more or less "how do I set a static IP"
Follow this answer for a similar question on Ubuntu 12.04 which is more or less identical in application.
The relevant bit is your Name server
How do I configure my DNS settings in Ubuntu server?
Though in keeping with many concerns of links relevant info from that question,
the correct file your looking for is
/etc/network/interfaces
and the part to modify should look similar to this
The primary network interface
auto eth0
iface eth0 inet static
address 192.168.X.X
netmask 255.255.255.0
gateway 192.168.X.X
dns-nameservers 1.1.1.1
This is the officially suggested method for changing/adding name servers from Ubuntu main help guides.
https://help.ubuntu.com/lts/serverguide/network-configuration.html#name-resolution
To configure the resolver, add the IP addresses of the nameservers that are appropriate for your network in the file /etc/network/interfaces.
answered Apr 13 at 3:05
Daniel
212
212
add a comment |Â
add a comment |Â