LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Disabling BIND DNS? Should I? (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/disabling-bind-dns-should-i-4175588524/)

CentOSVPS 09-01-2016 05:57 PM

Disabling BIND DNS? Should I?
 
Despite whether BIND is up to date or not, do I need BIND on my VPS?

Would it be possible to disable it in the scenario where I do not need my domain names to have nameservers that contain the domain name itself? (e.g. ns1.mydomainname.com)

Can I disable BIND and keep the domain names of the Registrar?
pdns07.domaincontrol.com
pdns08.domaincontrol.com

Do I need BIND?

Doug G 09-01-2016 06:14 PM

With my Digital Ocean cloud servers, I just use godaddy's DNS offered with the domain registration. I use their DNS web tools to dd a host (and any other) record pointing to the DO server.

unSpawn 09-01-2016 06:21 PM

Indeed the only Name servers that need to be reachable are the authoritative ones. So if you don't need to run your own authoritative Name servers for domain names you're responsible for then indeed: don't ;-p

CentOSVPS 09-01-2016 06:50 PM

Thanks all! I figure that means I can remove port 53 on my firewall for both UDP and TCP in/out also?

lazydog 09-01-2016 08:03 PM

Not if you expect your systems to connect to anything that isn't in their hosts file. They still need to be able to resolve names to ip addresses.

CentOSVPS 09-01-2016 08:24 PM

Thanks lazy dog. Just to clarify, that's just the port part, right? Or are you referring to disabling BIND?

lazydog 09-01-2016 08:56 PM

Just the port. As stated above, if you have an authoritative DNS somewhere else it isn't needed.

Doug G 09-01-2016 10:45 PM

If you're not running a nameserver on your machine, you don't need to allow incoming port 53.

CentOSVPS 09-02-2016 03:29 AM

Quote:

Originally Posted by lazydog (Post 5599565)
Not if you expect your systems to connect to anything that isn't in their hosts file. They still need to be able to resolve names to ip addresses.

Do you know which part of the system actually resolves names to IP addresses? Assuming that's on port 53 (TCP/UDP?) since you mentioned that?

CentOSVPS 09-04-2016 06:04 PM

Folks, I closed port 53 TCP & UDP IN. I left 53 TCP & UDP OUT open though. Any objections?

I may be asking a silly question here but why does 53 TCP/UDP OUT have to be open? I understand that the system needs to resolve hostnames to IPs but I don't understand how it does this (something on the system knows to use port 53 to do that?) and why it needs both UDP and TCP OUT and not one or the other.

Any details would be greatly appreciated. I'd consider this thread resolved in any case, so in 48 hours I'll mark it resolved whether one of you clever folks can answer this last query or not - Thanks :)

Habitual 09-06-2016 05:45 AM

Quote:

Originally Posted by CentOSVPS (Post 5600717)
why does 53 TCP/UDP OUT have to be open?

https://www.arclab.com/en/kb/email/l...rver-list.html

lazydog 09-06-2016 02:03 PM

Quote:

Originally Posted by CentOSVPS (Post 5599664)
Do you know which part of the system actually resolves names to IP addresses? Assuming that's on port 53 (TCP/UDP?) since you mentioned that?

Sorry for the late reply, Long Weekend. :)

Everything that has a host name instead of an IP Address will use DNS to resolve that name to ip.

For example if you were running a mail serve that mail server config was most likely setup using host names not IP Addresses for sending and receiving mail. If that server cannot connect to DNS it cannot send mail.

CentOSVPS 09-06-2016 05:54 PM

Ah yes I see. Any quick and easy way to test if my server can currently resolve hostnames to IPs - definitively?

Doug G 09-06-2016 08:23 PM

Quote:

Originally Posted by CentOSVPS (Post 5601642)
Ah yes I see. Any quick and easy way to test if my server can currently resolve hostnames to IPs - definitively?

run dig on the server.

CentOSVPS 09-07-2016 10:10 PM

1 Attachment(s)
Very strange that I removed 53 from all fields in ConfigServer Firewall and I can still dig?

Or would you expect that? (I didn't)


All times are GMT -5. The time now is 10:49 AM.