Solved

SetUp DynDNS on OpenBSD router.

Posted on 2009-07-05
7
2,010 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
  • 4
  • 3
7 Comments
 
LVL 61

Expert Comment

by:gheist
Comment Utility
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
Comment Utility
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 61

Expert Comment

by:gheist
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:wotan1953
Comment Utility
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 61

Accepted Solution

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

Author Comment

by:wotan1953
Comment Utility
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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now