Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to set the domainname?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
NiceGuy
Guru
Guru


Joined: 12 Jun 2006
Posts: 451
Location: Canada

PostPosted: Tue May 06, 2008 7:02 pm    Post subject: How to set the domainname? Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54243
Location: 56N 3W

PostPosted: Tue May 06, 2008 7:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
NiceGuy
Guru
Guru


Joined: 12 Jun 2006
Posts: 451
Location: Canada

PostPosted: Tue May 06, 2008 8:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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