Add Comment

You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.

To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.

This is the comment you were replying to, attached to the article Automatic/Dynamic configuration of hostnames for rolling out labs:


Re: Automatic/Dynamic configuration of hostnames for rolling out labs
Posted by Anonymous (82.151.xx.xx) on Thu 5 Jul 2007 at 07:39
Replace

hostname=$(host $new_ip_address | cut -d ' ' -f 5)

with

hostname=$(host $new_ip_address | cut -d ' ' -f 5 | sed -e 's/\.$//')

because $(host ...) return host name with dot at the end, and this is incorrent name for host (command hostname didn't understant it)

Username:Anonymous
Title:
Your Comment:

Posting Format:

 

Inappropriate comments will be removed.

Some help on entry formatting is available

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search