Configure DNS Forwarding for the Top 10 DNS Servers

The following article shows how to configure DNS forwarding on the top 10 commonly used DNS servers like Windows Server, Bind, PowerDNS and others.

Note: If you are changing DNS to forward to Securd IP addresses 142.202.107.1 and 142.202.107.2, perform Configure a Static IP Site to use Securd DNS first.

Windows Server (DNS Server Role)

Open DNS Manager.

  1. Right-click on the server name and select "Properties."
  2. Go to the "Forwarders" tab.
  3. Click "Edit" and enter the IP addresses 142.202.107.1 and 142.202.107.2 as the DNS servers to forward queries.
  4. Click "OK" to save.

BIND (Berkeley Internet Name Domain)

  1. Edit named.conf.
  2. Add forwarders in the options section.
forwarders {
    142.202.107.1;
    142.202.107.2;
};
  1. Save and restart BIND.

Linux (system-wide DNS settings)

  1. Edit /etc/resolv.conf.
  2. Add "nameserver" lines with DNS server IPs.
nameserver 142.202.107.1
nameserver 142.202.107.2
  1. Save and restart networking.

ISC DHCP Server

  1. Edit dhcpd.conf.
  2. Configure option domain-name-servers.
option domain-name-servers 142.202.107.1, 142.202.107.2;
  1. Restart DHCP service.

dnsmasq

  1. Edit /etc/dnsmasq.conf.
  2. Add "server" lines with DNS server IPs.
server=142.202.107.1
server=142.202.107.2
  1. Restart dnsmasq.

PowerDNS (Recursor)

  1. Edit pdns.conf.
  2. Set forward-zones to forward specific domains.
forward-zones=mydomain.com=142.202.107.1, 142.202.107.2
  1. Restart PowerDNS.

Unbound

  1. Edit unbound.conf.
  2. Configure forward-zone sections.
forward-zone:
    name: "."
    forward-addr: 142.202.107.1
    forward-addr: 142.202.107.2
  1. Restart Unbound.

CoreDNS

  1. Edit Corefile.
  2. Add forward plugin configuration.
.:53 {
    forward . 142.202.107.1 142.202.107.2
}
  1. Reload CoreDNS.