Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unknown Domain
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 835
Location: NY, USA

PostPosted: Thu Jan 06, 2011 7:25 pm    Post subject: Unknown Domain Reply with quote

I've read a few threads stating to hardcode my domain into my /etc/conf.d/net file to eliminate the unknown_domain display on boot (basically, it has <hostname>.unknown_domain). Now, the correct domain is in fact available in /etc/resolv.conf (DNS provides the correct information).

I was wondering if there was a way for hostname --fqdn (and the /etc/issue displayed on boot) to properly display the domain in which the computer resides based on what DNS tells it without having to hardcode anything into a configuration file.

Thanks!
Back to top
View user's profile Send private message
gerdesj
l33t
l33t


Joined: 29 Sep 2005
Posts: 621
Location: Yeovil, Somerset, UK

PostPosted: Sat Jan 08, 2011 2:18 am    Post subject: Re: Unknown Domain Reply with quote

Hostname comes from /etc/conf.d/hostname

Domainname comes from /etc/resolve. If your machine only sits on one place then that is not a problem - type it in manually.

If you use WiFi a lot then you can use /etc/conf.d/net to set the domain via:

dns_domain_SSID="some.domain"

Or you can use ARPing and configure things by detecting your gateway.

See /usr/share/doc/openrc-<version>/net.example

Cheers
Jon
Back to top
View user's profile Send private message
JC99
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Sat Jan 08, 2011 5:19 am    Post subject: Reply with quote

If you are referring to what it says just above the login prompt then add the following in your /etc/hosts file...

Code:
192.168.0.1     hostname.domain.tld   hostname
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum