Solved

SetUp DynDNS on OpenBSD router.

Posted on 2009-07-05
7
2,048 Views
Last Modified: 2013-12-06
Hi EE -

I have an OpenBSD router and  I am going to setup DynDNS. I have their "Custon DNS" plan. Once I have it running, I am going to purchase their "Mail Outbound" service. That way when I run scripts that send alerts using mailx, the relay will run through DynDNS. This last item is not my question right now. Just some background.



I found these instructions:

http://openbsd-wiki.org/index.php?title=DynDNS

One question I have is with this line:

######################################################################################################################

#cd /etc
#/usr/local/bin/ipcheck.py --makedat -i <if> <username> <password> <domains>

Where <if> is you network interface with the IP address you want to
register(ex: pppoe0), <username>/<password> are your DynDNS account
information and <domains> are a coma seperated list of domain to
update(ex:domain1.dyndns.org,domain2.dyndns.org).

#########################################
##############################################################################

I know <username> and <password> ... I think <domains> is <MYDomainThroughDynDNS.com>

But I am not sure about <if> ?

All I can think is:

ifconfig tun0
tun0: flags=8011<UP,POINTOPOINT,MULTICAST> mtu 1492
       inet 69.223.xxx.xxx --> 69.223.xyz.xyz netmask 0xffffffff

The other question I have is:
when editing the crontab,

as su (root),  I would :> crontab -u su -e

Then I would add say:

*/10     *       *       *       *      /usr/local/sbin/do_ipcheck

For every 10 minutes.

Does this sound right?

As usual, any help will be appreciated.

Thanks -
0
Comment
Question by:wotan1953
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 24792462
if = network interface that holds IP address to be published.
do nslookup against your domain.
checking more often than domain ttl is of little value.
0
 

Author Comment

by:wotan1953
ID: 24795498
Hey gheist -

So I do nslookup on my domain name registered at DynDNS. And use that IP in the <if> argument above?

Did the crontab look good?

Thanks -

0
 
LVL 62

Expert Comment

by:gheist
ID: 24801428
I think crontab entry should be adjusted to match domain TTL (first of numbers in header in seconds) like /30, but it should work perfectly your way.
You do not have to use IP, you have to use interface name like fxp0
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:wotan1953
ID: 24804867
Thanks that's is what I though regarding the network interface. But, I am just lost. If I do nslookup on say wotan.com,

Name:      wotan.com
Address: 68.178.232.99


I don't see an interface like fxp0 or pppoe?  I know when I run ifconfig -a on my OpenBSD router , I see :

tun0: flags=8011<UP,POINTOPOINT,MULTICAST> mtu 1492
        inet 69.223.38.167 --> 69.223.47.254 netmask 0xffffffff

This IP is my current assigned one. Is tun0 my <if>?

I also, have my 2 network cards in there:

rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:e0:7d:92:17:ab
        media: Ethernet autoselect (none)
        status: active
        inet 192.168.0.254 netmask 0xffffff00 broadcast 192.168.0.255
        inet6 fe80::2e0:7dff:fe92:17ab%rl0 prefixlen 64 scopeid 0x1
ep0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:20:af:f7:9c:5a
        media: Ethernet 10baseT
        status: active
        inet6 fe80::220:afff:fef7:9c5a%ep0 prefixlen 64 scopeid 0x2



But tun0 has the ip that would need to be sent to DynDNS.

Thanks -


0
 
LVL 62

Accepted Solution

by:
gheist earned 500 total points
ID: 24811705
Yes - tun0 is your network interface which holds your public IP address.
0
 

Author Comment

by:wotan1953
ID: 24896385
Okay ... I'm having problems with python. Thanks GHeist ... as usual .. this was very helpful.  I think I'm going to look for a perl approach.

Thanks Again
0
 

Author Closing Comment

by:wotan1953
ID: 31600009
I don't have python installed on 3.2 ... and from what I am reading ... I am not going to try. Thanks for all your help.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CPU monthly average? 12 150
unix scripting question 1 121
how to check for shares on aix 1 113
UNIX SCP 5 97
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question