NIS and NFS and YP in Ubuntu Server 14.04
-
Client side output for digging domain name
shiva@ubuntu:~$ dig test.com any ; <<>> DiG 9.9.5-3ubuntu0.1-Ubuntu <<>> test.com any ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16217 ;; flags: qr rd ra; QUERY: 1, ANSWER: 8, AUTHORITY: 2, ADDITIONAL: 3 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;test.com. IN ANY ;; ANSWER SECTION: test.com. 7200 IN SOA ns65.worldnic.com. namehost.worldnic.com. 115070707 10800 3600 604800 3600 test.com. 7200 IN TXT "google-site-verification=kW9t2V_S7WjOX57zq0tP8Ae_WJhRwUcZoqpdEkvuXJk" test.com. 7200 IN MX 10 mx.spamexperts.com. test.com. 7200 IN MX 20 fallbackmx.spamexperts.eu. test.com. 7200 IN MX 30 lastmx.spamexperts.net. test.com. 3600 IN A 69.172.200.235 test.com. 7200 IN NS ns66.worldnic.com. test.com. 7200 IN NS ns65.worldnic.com. ;; AUTHORITY SECTION: test.com. 7200 IN NS ns66.worldnic.com. test.com. 7200 IN NS ns65.worldnic.com. ;; ADDITIONAL SECTION: ns65.worldnic.com. 171249 IN A 207.204.40.133 ns66.worldnic.com. 171249 IN A 207.204.21.133 ;; Query time: 841 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Jul 16 18:50:33 IST 2015 ;; MSG SIZE rcvd: 396 shiva@ubuntu:~$
-
I edited your posts for readability.
-
You are getting way too deep when your errors are very shallow. Right now it looks like NIS isn't running yet:
oot@ubuntu:~# ypwhich ypwhich: Can't communicate with ypbind root@ubuntu:~# ypcat passwd No such map passwd.byname. Reason: Can't bind to server which serves this domain
Before you are doing all of this.... just look and see if NIS is running. Just this command on your NIS server:
netstat -tulpn
-
Or query the NIS service and ask it if it is running.
-
Have firewall ports been opened for RPCBIND and whatever else is needed?
-
How to open ports for the NIS and NFS in iptables?
I have followed the below to link configure for the NIS configurattion now.https://help.ubuntu.com/community/SettingUpNISHowTo
But I was not able to open the ports I have given in the website
I have also installed the iptables-persistent in the ubuntu server but the default path to edit rules was not able to identify.
When I use the rules for the port I have opened means the error coming here is
Bad Argument"IP" -
@Lakshmana said:
How to open ports for the NIS and NFS in iptables?
Same way as the other times you opened ports in iptables. Just change the port numbers. For now, while you are trying to figure things out, just turn iptables off.
-
@Lakshmana said:
When I use the rules for the port I have opened means the error coming here is
Bad Argument"IP"Instead of describing the issue in cases like this, supply the screen shot or a copy/paste of the commands that fail and the error. In almost all cases it's just a typo or missed argument. In every case we will ask you to do this. So instead of making us ask, just start by providing the information so we can assist more quickly.
-
Configured Properly and now it is working
-
What was wrong?
-
I have not mentioned the server at /etc/hosts and ypbind does not happen because of this option the whole setup has issue.
-
I am guessing that you do not have all of your servers listed in DNS and that might be causing the problem requiring /etc/hosts to have an entry?
-
You can use IP addresses in your configuration files too, instead of hostnames if you are lacking DNS.
-
OK.