DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 31st January 2009
idefix idefix is offline
Port Guard
 
Join Date: May 2008
Location: Flanders-Belgium
Posts: 16
Thanked 1 Time in 1 Post
Default could not look up internet address for .lan

Hi all,
I installed xfce as a desktop environment. Everything works fine, except that at startup of xfce I always get a message:

Quote:
could not look up internet address for .lan
This will prevent Xfce from operating correctly.
It may be possible to correct the problem by adding
.lan to the file /etc/hosts on your system
Then I have 2 buttons: "Continue anyway" and "Retry". When I choose "Continue" xfce works fine.
How can I fix this?

My /etc/hosts contains 2 lines:
Code:
 ::1     localhost localhost.my.domain
127.0.0.1   localhost localhost.my.domain
In what form should .lan be added?
Thanks in advance for a reply.
Reply With Quote
  #2   (View Single Post)  
Old 31st January 2009
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Thanked 6 Times in 6 Posts
Default

/etc/hosts should be set by default from sysinstall when you have installed FreeBSD, unless you haven't configured your NIC during install.

You haven't set the hostname of the system in /etc/hosts

Usually use this form of setting the hostname of the system in /etc/hosts
Code:
<ip_address>      <hostname.domain> <hostname>
<ip_address>      <hostname>.
If you used for hostname 'lan' and domain for example 'mydomain' use should add these lines to /etc/hosts (10.35.1.90 in this case should be your ip address)

Code:
10.35.1.90        lan.mydomain lan
10.35.1.90        lan.mydomain.
See also hosts(5)
__________________
"I never think of the future. It comes soon enough." - A.E

Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org
Reply With Quote
  #3   (View Single Post)  
Old 31st January 2009
idefix idefix is offline
Port Guard
 
Join Date: May 2008
Location: Flanders-Belgium
Posts: 16
Thanked 1 Time in 1 Post
Default

Thanks, DNAeon, that works!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to test whether an IP address has been listed in a DNSBL J65nko Guides 9 12th March 2013 04:40 PM
Changing MAC address to an alias interface? DNAeon FreeBSD General 6 20th January 2009 04:48 PM
Static IP address problem rex FreeBSD General 2 25th November 2008 08:53 PM
MAC address to IP rex FreeBSD General 9 11th November 2008 07:06 PM
Asking about IPv6 address berlowin Off-Topic 2 9th July 2008 02:39 AM


All times are GMT. The time now is 12:16 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick