Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i have configured DNS on server(node1) and client(node2).
on server everything is fine, when i tried to check DNS configuration from client end using ping and nslookup its failing.
====================================
server configuration details
=====================================
[root@node2 ~]# nslookup cluster.com
;; connection timed out; no servers could be reached
You don't have any nameserver defined in /etc/resolv.conf
Just follow the instructions given in /etc/resolv.conf and add your nameserver in the appropriate script:
Quote:
[root@node2 ~]# cat /etc/resolv.conf
# Generated by NetworkManager
search cluster.com
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
[root@node2 network-scripts]# cat /etc/resolv.conf
# Generated by NetworkManager
search cluster
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
nameserver 192.168.1.51
[root@node2 network-scripts]# cat /etc/resolv.conf
# Generated by NetworkManager
search cluster
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
nameserver 192.168.1.51
You should follow the instructions in /etc/resolv.conf and add the dns entry in the script used to bring up your nic. Otherwise if you're using NM, the entry you've added manually in /etc/rseolv.conf will be lost in the next reboot.
I guess you're running an RHEL based distro, in which case you should add in /etc/sysconfig/network-scripts/ifcfg-eth0
Code:
DNS1=192.168.1.51
Last edited by bathory; 08-03-2016 at 02:34 AM.
Reason: typo
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.