Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Proper way to set system domain name?
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
CoderMan
Apprentice
Apprentice


Joined: 10 Aug 2009
Posts: 173

PostPosted: Sat Sep 18, 2010 11:44 pm    Post subject: Proper way to set system domain name? Reply with quote

Hi. For setting the hostname of my new Web server, there is a /etc/conf.d/hostname file. But there seems to be no /etc/conf.d/dnsdomainname file. Furthermore, there is an "hostname" script in init.d, but no "dnsdomainname" script. Handbook indicates adding dns_domain_lo=<hostname> to /etc/conf.d/net, but all this seems to do is to overwrite my /etc/resolv.conf file (which is rather annoying).

I'm concerned about the domainname being correct because I am trying to set up postfix for the first time, and apparently the myorigin parameter is supposed to be set to $mydomain, which uses the system's domain name. But the "dnsdomainname" command on my system returns an error:
Code:


# dnsdomainname
dnsdomainname: Unknown host


BTW, my Web server is not also acting as a name server.
_________________
Like computers but don't like programming? Then you missed the whole point.
frigidcode.com
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sun Sep 19, 2010 2:06 am    Post subject: Reply with quote

Quote:
Unless you are using bind or NIS for host lookups you can change the
FQDN (Fully Qualified Domain Name) and the DNS domain name (which is
part of the FQDN) in the /etc/hosts file.

example
Quote:
192.168.xxx.xxx hostname.domainname. hostname www
in /etc/hosts
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