[clug] Running my own dynamic DNS?

Stephen Rothwell sfr at canb.auug.org.au
Tue Feb 25 17:01:24 MST 2014


Hi Tony,

Just a tweak :-)

On Wed, 26 Feb 2014 10:03:16 +1100 Tony Breeds <tony at bakeyournoodle.com> wrote:
>
>         ip=$( /usr/bin/host -r -t A  ${name}  2>&1 | /usr/bin/awk '/has address/ {print $4}' 2>&1 )

ip=$(dig +short +norecurse @${dns_server_name} ${name} a)

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/linux/attachments/20140226/c392b02c/attachment.pgp>


More information about the linux mailing list