What happens if I turn off my DNS?

What happens if I configure DNS?

This is an easy one, for most people it will be enough to just configure the server to send out DNS requests for you.

The most common answer is: The hostname used to resolve will be set in /etc/hosts. The first entry will be the value of the "host" directive in your config file.

For example, on a Debian server with the config file: # /etc/dhcpd.conf host sda. Option domain-name-servers ns1.com, ns2.com;

The hostname "sda" will be resolved to ns1.com and ns2.

For many people this is more than enough. If you have a very large number of hosts then this might not be enough, but most people do not need to worry about it.

If you do want to know more about DNS, you may wish to read the following documents: How does a Domain Name Server work? How to configure a Domain Name Server for yourself? What is the difference between a Dynamic DNS service and a Domain Name Service? How to build your own DNS Server. ? I have configured a basic DNS server for myself (see my How to build your own DNS Server document). I am now happy that I can resolve all of my hosts using a single DNS server.

However, as I add new hosts to my network, I don't want to have to edit my /etc/hosts file every time to add a new hostname. I would like to have my hostnames resolve automatically.

I also need to resolve subdomains, so that my subdomains resolve to their respective hosts. For example, I want to be able to resolve the name "sda.com" to my server's IP address.

I have installed Bind 9.6.1, which seems to be the current version.

To begin, I have added a "host" entry to my /etc/hosts file: 0.1 localhost 1 sda.

What happens if I turn off my DNS?

It would be a nightmare.

You can not have a simple DNS server on your LAN or WAN that just gives name resolution. Even with bind you have to make sure the names are bound properly, and it is just a nightmare without a dedicated resolver. So even the free bind9 has a limited support for multiple DNS servers and they must be defined correctly. Not just that you need a way to find out what DNS servers are used by programs/user.

Should I turn DNS on or off?

Yes, you should turn DNS off on your LAN, but it's a security risk to have it off.

Most people don't understand the danger of having their computers talk directly to each other over a publicly accessible network without some kind of authentication mechanism, and they would be more secure if their computers are talking to each other over an encrypted channel. In general, people who are worried about security should turn on HTTPS (TLS/SSL) for all HTTP connections to their web servers.

Related Answers

What is DNS and why is it used?

DNS (Domain Name Service) is a network protocol which translates human readable hos...

Can I use Google DNS for free?

What are they doing for you? This post is about DNS servers and what...

Is 1.1.1.1 still the best DNS?

I am not looking for a paid DNS service. FreeDNS is probably the best fre...