Solved

SetUp DynDNS on OpenBSD router.

Posted on 2009-07-05
7
2,041 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 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
Technology Partners: 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access_log 17 163
Writing a UNIX script menu allowing for multiple options. 5 91
Retreiving column names in Windows but not in Unix 11 75
awk sed 8 102
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

713 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