Solved

SetUp DynDNS on OpenBSD router.

Posted on 2009-07-05
7
2,019 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
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 61

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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 61

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSH commands for Nas4free 21 383
Best way to handle awk return value 6 66
Using Grep to Find a file 8 87
unix in java example 9 53
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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…
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.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

863 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

25 Experts available now in Live!

Get 1:1 Help Now