Koozali.org: home of the SME Server

Custom DNS Forwarding

CH Cheah

Custom DNS Forwarding
« on: July 16, 2004, 08:02:15 PM »
Anyone know how to define custom settings for forwarding certain DNS queries to other DNS servers.

For example when I intend to use a local DNS server for the local domain (the other DNS  queries will be forwarded to the Internet directly)

jeroentje

Custom DNS Forwarding
« Reply #1 on: July 17, 2004, 02:22:32 AM »
Just set the sme box as your dns server.

Anonymous

Custom DNS Forwarding
« Reply #2 on: July 17, 2004, 11:30:01 AM »
Not good if u are using Active Directory

CH Cheah

Custom DNS Forwarding
« Reply #3 on: July 18, 2004, 05:04:02 PM »
SME box is set as the DNS server but some of the clients need to access another private network which has it's own DNS server. Thus I would like to forward all queries for this private network to their DNS server.

A good example would be WinRoute's (Kerio) custom forwarding option. It allows you to define which DNS server to query based on domain name.

Any ideas ?

CheahCH

Custom DNS Forwarding
« Reply #4 on: July 21, 2004, 08:32:13 PM »
Found this on the FAQ page. Hope to be of help to anyone else whose in the same boat. Will be trying it out soon.


How do I tell my cache to consult internal DNS servers? Our network has internal servers at IP addresses 10.1.2.5 and 10.1.2.6 providing information about the moon.af.mil and 10.in-addr.arpa domains.

Answer: Put

     10.1.2.5
     10.1.2.6

into /service/dnscache/root/servers/moon.af.mil and into /service/dnscache/root/servers/10.in-addr.arpa. Make sure that both files are readable by the DNS cache account. Restart dnscache:

     svc -t /service/dnscache

dnscache will contact the internal servers for information about moon.af.mil and 10.in-addr.arpa. If the moon.af.mil servers delegate darkside.moon.af.mil to another server, dnscache will contact that server for information about darkside.moon.af.mil.