The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
Article Feedback - IPsec
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 hostname lookup.
Author: zteknofreak 
Date:   23-03-02 01:07

i too am having the hostname error:
/usr/local/bin/mysql_install_db
Sorry, the host 'zteknofreak' could not be looked up.
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with
the --force option
*** Error code 1

Stop in /usr/ports/databases/mysql323-server.
*** Error code 1

Stop in /usr/ports/databases/mysql323-server.
*** Error code 1

Stop in /usr/ports/databases/mysql323-server.
freebsd4.4
problem is that my resolv.conf file looks great. everything that i've found on the web says edit resolv.conf. not working for me. blech. tired. no more.

Reply To This Message
 
 Re: hostname lookup.
Author: Dan Langille 
Date:   23-03-02 02:19

zteknofreak wrote:
>
> i too am having the hostname error:
> /usr/local/bin/mysql_install_db

first, why are you running that command? Oh, looking below, it looks like you are installing the port....

> Sorry, the host 'zteknofreak' could not be looked up.
> Please configure the 'hostname' command to return a correct
> hostname.

What does this command return? : hostname

> problem is that my resolv.conf file looks great. everything
> that i've found on the web says edit resolv.conf. not working
> for me. blech. tired. no more.

Don't worry about /etc/resolv.conf until we know what hostname returns. Perhaps adding an entry in /etc/hosts is what you need to do. Put in the value returned by hostname and the IP address.

Reply To This Message
 
 Re: hostname lookup.
Author: zteknofreak 
Date:   28-05-02 23:56

<snip>
Don't worry about /etc/resolv.conf until we know what hostname returns. Perhaps adding an entry in /etc/hosts is what you need to do. Put in the value returned by hostname and the IP address.
</snip>

forgot to update, sorry 'bout that. working with friend, this is exactly what we did as a workaround. the problem is that in the port it does a hostname -s, which strips everything after the first '.' and then tries to do a hostname lookup on it, and promptly fails.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org