Koozali.org: home of the SME Server

OpenDNS

jimh76_99

OpenDNS
« on: September 03, 2006, 12:45:36 AM »
I have been running SME 6.0.1 for over a year and am ready to upgrade to 7.  When I do so I would like to implement OpenDNS for external DNS lookups.
I have searched the documentation but can't identify a way to specify external DNS servers. My ISP connection is DHCP (wireless high speed).

If I were using a Linksys router doing this would be trivial. There has to be a way to do it in SME. I would like to know how to do it before I undertake the upgrade.

kozel

OpenDNS
« Reply #1 on: October 01, 2006, 09:18:21 PM »
I'd be interest in an answer to this too, anyone willing to help?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: OpenDNS
« Reply #2 on: October 02, 2006, 04:11:56 AM »
jimh76_99

You can specify to use an external DNS server in one of the server manager panels.
I suggest you install sme7 on a test server and get familiar with it before doing any major upgrade.
I would also suggest leaving your configuration similar to what it is now, that way you don't introduce too many changes in the upgrade process. After sme7 is running stable with your configuration for a period of time, then change the DNS server.
That way at least you will be able to clearly associate any issues with the one change you make at that time.
...

spanna

OpenDNS
« Reply #3 on: February 28, 2007, 02:18:30 PM »
Hi Guys,

Has anyone had any luck with this? I have two servers in different configurations (server and gateway / server only) and I'd like to use OpenDNS on both of them without losing the functionality of the server's own DNS system too (for example, pointing certain domains to internal addresses and the like).

Thanks, Adam.

Offline AKn

  • *
  • 19
  • +0/-0
OpenDNS
« Reply #4 on: July 31, 2007, 12:59:18 PM »
There has been no reply to this post. I wonder if anyone has tried this successfully in the last 1.5 years?

ak

Offline turtle2472

  • ****
  • 72
  • +0/-0
Re: OpenDNS
« Reply #5 on: September 05, 2007, 05:20:43 AM »
Bumping this thread to get some feedback.

I know how to change it, just wondering if it is worth it to change to OpenDNS for my network.  I also wanted to verify that it will only change where my external sites are pulled up.

Offline turtle2472

  • ****
  • 72
  • +0/-0
Re: OpenDNS
« Reply #6 on: September 05, 2007, 06:29:17 AM »
Also, how can i specify the Alt DNS?  There is only the option to add a primary.  Thanks.

Offline si_blakely

  • *
  • 57
  • +0/-0
Re: OpenDNS
« Reply #7 on: September 05, 2007, 03:30:18 PM »
I've done this - I just set the Corporate DNS server entry, and did not use the Alternate.

It does not seem to cause any issues. I could just do a custom template to add the second entry.

I have also set OpenDNS to act as an inappropriate site filter. I have not quite worked out how to use ddclient to update this, but it should work pretty well.

Si

Offline turtle2472

  • ****
  • 72
  • +0/-0
Re: OpenDNS
« Reply #8 on: September 05, 2007, 05:44:42 PM »
I've done this - I just set the Corporate DNS server entry, and did not use the Alternate.

It does not seem to cause any issues. I could just do a custom template to add the second entry.

I have also set OpenDNS to act as an inappropriate site filter. I have not quite worked out how to use ddclient to update this, but it should work pretty well.

Si

Great.  I'm glad to hear you haven't had an issue with the lack of an Alt Server. 

Is your corp network on a Dynamic IP?  I just set up the DynDNS Updater to work with OpenDNS and it worked well.  I had to install is on a PC on my network and have it draw the IP from whatismyip.com rather than letting DynDNS Updater resolve it on it's own. 

Offline si_blakely

  • *
  • 57
  • +0/-0
Re: OpenDNS
« Reply #9 on: September 05, 2007, 10:03:43 PM »
I am using dynDNS - my router updates the primary dns, and I use ddclient on my SME server to update a second domain. I just need to figure out how to make ddclient update OpenDNS (I can't use the ddclient panel, so I need a custom template). It hasn't been an issue yet - my router ip is the same for weeks on end, but I'd like to ensure that it is always updated.

Si

Offline turtle2472

  • ****
  • 72
  • +0/-0
Re: OpenDNS
« Reply #10 on: September 06, 2007, 12:43:22 AM »
Have you tried the forums on OpenDNS?  They might have something figured out there already.  I got rid of my router in lieu of using SME Server only.  This is why the only means I had to run DynDNS Updater on a PC on my network.

Offline si_blakely

  • *
  • 57
  • +0/-0
Re: OpenDNS
« Reply #11 on: September 07, 2007, 11:23:27 AM »
OpenDNS with ddclient contrib

I created a template fragment as follows

/etc/e-smith/templates-custom/etc/ddclient/ddclient.conf/30OpenDNS

Code: [Select]
##
## OpenDNS.com account-configuration
##
server=updates.opendns.com, \
protocol=dyndns2, \
login=<opendns user name>, \
password=<opendns password> \
<opendns network label>

I also modified /etc/e-smith/templates-custom/etc/ddclient/ddclient.conf/10Headers to enable ssl

Code: [Select]
daemon=300 # check every 300 seconds
syslog=yes # log update msgs to syslog
mail=admin # mail update msgs to admin
mail-failure=admin created a template fragment as follows


pid=/var/run/ddclient.pid # record PID in file.
sl=yes # use ssl
#s

then
Code: [Select]
# expand-template /etc/ddclient/ddclient.conf
# killall ddclient
# ddclient

It took a while for OpenDNS to recognise the network label, but the ddclient failure emails have stopped and all seems to be well.

Si

Offline turtle2472

  • ****
  • 72
  • +0/-0
Re: OpenDNS
« Reply #12 on: September 07, 2007, 01:02:16 PM »
Thanks, that's great!