[OpenIndiana-discuss] OpenSolaris and dynamic DNS
Matt Connolly
matt.connolly.au at gmail.com
Wed Feb 9 10:56:58 UTC 2011
On 08/02/2011, at 6:16 AM, Gary Gendel wrote:
> Thanks for all the responses. Indeed, I've already replaced my cron script.
>
> On 2/7/11 11:08 AM, Dave Miner wrote:
>> On 02/ 7/11 10:43 AM, Gary Gendel wrote:
>>> Something that someone mentioned in passing triggered a thought.
>>>
>>> My server gets it's ip address via DHCP from my ISP. Currently I have a
>>> cron job that queries the address and, if it changed, update a DNS
>>> server externally. This way I can use mail and web services external to
>>> my network.
>>>
>>> Can I replace the cron job with a trigger from the dhcp client when it
>>> gets a new IP address instead? Is this possible with the current dhcp
>>> client or a replacement?
>>>
>>
>> dhcpagent(1M) describes the eventhook mechanism built into the DHCP client. It's meant for exactly these sorts of uses.
>>
>> Dave
That's good to know. I've been using "ddclient-3.7.3" for many months now on a cron schedule. In my case though, I have a router which gets the dynamic IP address and uses port mapping to expose only specific ports of my server to the internet, so I don't think I can make use of that at present...
-Matt
More information about the OpenIndiana-discuss
mailing list