≡ Menu

DNS

How to change the port on which Bind listens to?

Bind has a configuration file which can be edited to change the port on which Bind listens to: /etc/named.conf In this file, you can change the port by adding the following statement to the global options directive: port 54 Adding the above statement will make Bind listen on port 54 instead of the default port [...]

{ 0 comments }

How to make Bind listen on a specific IP address?

The question - I want Bind to listen on all of my IP addresses. How do I do this using Bind on CentOS? There are listen-on and listen-on-v6 Bind directives that can be used to make Bind listen on specific ports and ip addresses. Bind has config file called the following: /etc/named.conf To change the [...]

{ 0 comments }

Start Stop Restart Bind DNS Server on Linux

The question - How do I restart Bind DNS server on my CentOS Linux machine? There are a two methods for starting/stopping/restarting the Bind DNS server. Using the service command To start Bind: service named start To stop Bind: service named stop To restart Bind: service named restart Note that the service command can also [...]

{ 0 comments }

How do I check Bind zone file for errors?

Question - I added a few zones to my Bind zone files. I need to check them for errors. How do I do that? There is a Bind utility called named-checkzone which can be used to check Bind named zone files. The syntax for using this tool is as follows: named-checkzone domainname zonefilename For example, [...]

{ 0 comments }

Linux: DNS Search List in resolv.conf

Quesetion - I want to setup a search list for my dns resolution. For example, I want all hostnames without a dot to be appended by my domain name e.g. if I do a lookup on mail, I want the resolver to search for mail.mydomain.com. Is there a way to do this quickly and easily? [...]

{ 0 comments }

Linux: Install Free DNS Server Software

DNS is a protocol that allows one to convert a domain name (or a host name) to its IP address. Each domain name has a set of authoritative name servers (like ns1.google.com) which know about the domain name and return its IP addresses, mail servers, SOA records etc. The open recursive name servers like the [...]

{ 0 comments }

How to setup dnsmasq DNS caching server on Linux?

Dnsmasq is a light weight DNS caching server which will cache all DNS request sent through it. Configuring and installing dnsmasq is quite simple. By caching DNS queries, the lookup speed of DNS queries will improve. If you have a few DNS queries that run several times, the speed of those queries will increase significantly. [...]

{ 0 comments }

How do I use my Bind name server with my domain name?

Question - I have a few domain names registered with GoDaddy and eNom. I want to use my own name server running Bind for these domain names. How do I let my registrar know that I want to use my own name servers running Bind? To setup your own name server, you need to register [...]

{ 0 comments }

Cannot ping hostname but can ping IP

Question - I have a Linux box in which I cannot ping domain names, but I can ping IP addresses. What could be the problem? To be able to use host names or domain names, you need to have DNS configured on your Linux machine. DNS is a protocol that can convert a domain name [...]

{ 0 comments }

Available Free DNS Servers

DNS is a protocol that allows you to convert a domain name (e.g. google.com) to its IP address (e.g. 8.8.8.8). The A record in a DNS entry converts a name to its IPv4 adddress. The AAAA record contents name to its IPv6 address. There are two types of name servers on the internet: 1) Authoritative [...]

{ 0 comments }