Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2077
  • Last Modified:

SetUp DynDNS on OpenBSD router.

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
wotan1953
Asked:
wotan1953
  • 4
  • 3
1 Solution
 
gheistCommented:
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
 
wotan1953Author Commented:
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
 
gheistCommented:
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!

 
wotan1953Author Commented:
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
 
gheistCommented:
Yes - tun0 is your network interface which holds your public IP address.
0
 
wotan1953Author Commented:
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
 
wotan1953Author Commented:
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

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!

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now