CoderMan Apprentice


Joined: 10 Aug 2009 Posts: 173
|
Posted: Sat Sep 18, 2010 11:44 pm Post subject: Proper way to set system domain name? |
|
|
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 |
|