View previous topic :: View next topic |
Author |
Message |
NiceGuy Guru
Joined: 12 Jun 2006 Posts: 451 Location: Canada
|
Posted: Tue May 06, 2008 7:02 pm Post subject: How to set the domainname? |
|
|
Hello,
Recently upgraded my gentoo box, noticing that setting the domainname of a box has changed. Could anybody describe where and how (syntactically) I perform this now? Would enjoy further reading on the topic, could only find minimal (very minimal) information on dns_domain or such. Not sure of its relevance.
I upgraded a Gentoo Box dating back to ~2005(aprox).
Thanks _________________ success is the ability to go from one failure to the next without any loss of enthusiasm |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54243 Location: 56N 3W
|
Posted: Tue May 06, 2008 7:58 pm Post subject: |
|
|
NiceGuy,
Since that vintage, Gentoo has moved both hostname and domainname into /etc/conf.d
In your pre update they were in /etc
There files themselves contain comments as to what you need to do.
After the switch, you should remove /etc/hostname and /etc/domainname, or at least, rename them for testing and future removal, so that they will not be found _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
NiceGuy Guru
Joined: 12 Jun 2006 Posts: 451 Location: Canada
|
Posted: Tue May 06, 2008 8:58 pm Post subject: |
|
|
Hello,
Thanks for the reply ... been reading a bit .. appears I would need add to /etc/conf.d/net
Code: | dns_domain="exampledomain.tld" |
My question is (and I have not been able to come across it ), since my Gentoo box has multiple interface/networks ... would it be possible to configure the domain on a per
interface basis .. something like:
/etc/conf.d/net
Code: | dns_domain_eth0="somedomain.tld"
dns_domain_eth1="someotherdomain.tld" |
Thanks _________________ success is the ability to go from one failure to the next without any loss of enthusiasm |
|
Back to top |
|
|
|