Ask Your Question
0

NIS DNS domain name conflict

asked 2015-02-24 08:34:39 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I've set up my machine to be a NIS client and to use DNS.

Linux tulshi 3.17.8-200.fc20.x86_64 #1 SMP Thu Jan 8 23:26:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

I've set yp.conf to (where bridget is the yp server and leb is the domain name):

# /etc/yp.conf - ypbind configuration file
domain leb server bridget

and

[root@tulshi /]# more /etc/sysconfig/network
# Created by anaconda
HOSTNAME=tulshi
DOMAIN=niaaa
NISDOMAIN=leb

But when I set ypdomain to leb the NIS works, but DNS does not when I set domainname to niaaa then the DNS works, but the NIS does not

My other machines all work - not this one.

How can I set the domain names for both NIS and DNS and have both work at the same time?

Roger

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-02-24 10:08:16 -0600

cobra gravatar image

How is your network configured? Are you using NetworkManager? DHCP? If you're using nm, then you probably don't need that extra stuff in your network config, If you're using DHCP, let that sort out both the DNS and the NIS configurations.

The problem is most likely arising because when you specify the DNS domain, it cannot find the name of the NIS server from your DNS resolver. If you add an entry in /etc/hosts for the NIS server, it may sort that problem out for you. I always put static entries in that file for static servers, it's quicker than going to DNS every time.

edit flag offensive delete link more

Comments

I am using DNS and set the network settings manually. I put IP address for the DNS server in the /etc/resolve.conf file. And yes, for my printers and other servers and routers I put the IP addresses in /etc/hosts.

What I'm asking is: isn't there a way to set the dnsdomainname and nisdomainname so that they are different?

Thanks, Roger

RogerP gravatar imageRogerP ( 2015-06-19 07:43:19 -0600 )edit

Yes there is. Your DNS settings are declared in /etc/resolv.conf. Your NIS settings are in /etc/yp.conf. You can set them independently to IP addresses or hostnames as fits your deployment.

cobra gravatar imagecobra ( 2015-06-22 08:45:14 -0600 )edit

I know about /etc/resolv.conf and I have obviously set it, but I still have the problem. As soon as I set the domainname to the nis domain then I have problems with yum, for example, and then when I set it to the dns domain I have problems with the accounts.

Has anyone every thought that the NIS and DNS domains might be different?

Roger

RogerP gravatar imageRogerP ( 2015-06-24 09:19:27 -0600 )edit

Your NIS/YP 'domain' is not an internet domain. You define them in different files. Set them separately, don't try and mix them up. NIS is NOT resolved by DNS lookups, unless the server definition for the domain points at a fully qualified domain name.

cobra gravatar imagecobra ( 2015-06-25 08:13:13 -0600 )edit

You obviously don't understand.

I am not mixing my NIS and DNS lookups. They both have separte names and that is the problem.

I've set them in /etc/sysconfig/network I set the NIS domain using ypdomainname and NIS works, but not the DNS I set the DNS domain using domainname and DNS works, but not NIS

How can I set both the DNS domainname and the NIS domainname so that they are different and have both DNS and NIS work?

RogerP gravatar imageRogerP ( 2015-09-08 13:16:54 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-02-24 08:34:39 -0600

Seen: 225 times

Last updated: Feb 24 '15