You are not logged in.

#1 2011-12-10 18:38:31

nathanb
Member
Registered: 2011-11-28
Posts: 103
Website

How do I set my domain?

My computer isn't showing up in DNS, and I believe the domain name is the culprit. I need to be on domain 'example.com'. My defaultdomain file seems to be set properly:

[root@nathanb-box etc]# cat defaultdomain
example.com

And also:

[root@nathanb-box conf.d]# cat nisdomainname
#
# NIS domain to be set in /etc/rc.d/ypbind
#
NISDOMAINNAME="example.com"

However:

[root@nathanb-box conf.d]# echo $NISDOMAINNAME

[root@nathanb-box conf.d]#

Obviously none of that worked:

[root@nathanb-box conf.d]# domainname
localdomain

[root@nathanb-box conf.d]# domainname example.com
localdomain

How do I set it to example.com? Sorry for the no-doubt noobish question.

Offline

#2 2011-12-10 19:01:31

Arhat
Member
Registered: 2010-07-02
Posts: 49
Website

Re: How do I set my domain?

Not sure if this will solve your problem, but check if you've got
inetutils
installed.
I had a problem with the host name of a server a while back and installing inetutils solved it.

Offline

#3 2011-12-10 19:04:48

nathanb
Member
Registered: 2011-11-28
Posts: 103
Website

Re: How do I set my domain?

[nathanb@nathanb-box ~] pacman --sync --search inetutils
core/inetutils 1.8-6 (base) [installed]
    A collection of common network programs

Also, I should mention that resolv.conf has "domain example.com" at the top

Offline

#4 2012-01-13 09:11:39

Harey
Member
From: Bavaria, Germany
Registered: 2007-03-24
Posts: 359

Re: How do I set my domain?

Sorry for being late, but today I stubled over this myself. The moves between inetutils and net-tools  seem to have hosed something here. domainname isn't working properly now. Use hostname -d instead. As for nisdomainname you have to edit the file
/etc/conf.d/nisdomainname
to look like this:

NISDOMAINNAME="your.domain"

Did you check your /etc/hosts to reflect your domain and hostname? See here
https://wiki.archlinux.org/index.php/Ne … _host_name

HTH
Harvey


Linux is like a wigwam: No Gates, no Windows and an Apache inside

Offline

Board footer

Powered by FluxBB