dns client not working


 
Thread Tools Search this Thread
Operating Systems Solaris dns client not working
# 1  
Old 12-21-2010
dns client not working

Hi All,

I have configured linux server as local dns server (practice level).

I have given the IP and hostname details in /etc/hosts
Code:
-bash-3.00# cat /etc/hosts
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
192.168.1.78 dummy.set.com loghost
192.168.1.57 cent.set.com # dns server
192.168.1.67 next.set.com

-bash-3.00# grep hosts /etc/nsswitch.conf
# DNS for hosts lookups, otherwise it does not use any other naming service.
# “hosts:” and “services:” in this file are used only if the
hosts: files dns
# before searching the hosts databases.

I have given following entries in solaris client /etc/resolv.conf

-bash-3.00# cat /etc/resolv.conf
search set.com
nameserver 192.168.1.57

-bash-3.00# svcs -a | grep dns
disabled 8:38:39 svc:/network/dns/server:default
online 8:39:14 svc:/network/dns/client:default

-bash-3.00# nslookup dummy.set.com
Server: 192.168.1.57
Address: 192.168.1.57#53
** server can’t find dummy.set.com.set.com: REFUSED

Smilie

Last edited by pludi; 12-21-2010 at 08:00 AM.. Reason: code tags, please...
# 2  
Old 12-21-2010
have you configured BIND on your linux box? based on what you have posted, it seems you only have edited the hosts file and the nsswitch.conf. the changes that you have done on nsswitch.conf file only tells the local machine to search dns if the host can't be found on the hosts file.
# 3  
Old 12-21-2010
you have to configure and run bind if you wish to do nslookup. hostname in file can be cross checked by doing a ping / telnet etc etc. nslookup will try to get it via dns db file not file(/etc/hosts)

ping dummy.set.com
telnet dummy.set.com
ftp dummy.set.com
Smilie
# 4  
Old 12-21-2010
Your problem is described in the last line of output:
Code:
** server can’t find dummy.set.com.set.com: REFUSED

Try a lookup doing
Code:
nslookup dummy.set.com.

The last dot will tell the resolver not to append the search domain, but treat this as the full DNS record requested.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

DNS client added to DNS server but not working

Hi, We have built a new server (RHEL VM)and added that IP/hostname into dns zone configs file on DNS server (Solaris 10). Reloaded the configuration using and added nameserver into resolv.conf on client. But when I am trying nslookup, its not getting resolved. The nameserver is not able to... (8 Replies)
Discussion started by: snchaudhari2
8 Replies

2. Solaris

DNS client - what exactly it is

Hi all, I always thought DNS server = provide DNS response (host to ip / ip to host) to DNS client (which send DNS resolve request). So in my solaris 10 box, i setup /etc/resolv/conf, /etc/nsswitch.conf (added in dns) etc. Yes, i am able to dig and nslookup. But.. am i a DNS client ? ... (5 Replies)
Discussion started by: javanoob
5 Replies

3. Red Hat

Nslookup working but ping not working at windows client

Hi Team we have created a DNS server at RHEL6.2 environment in 10.20.203.x/24 network. Everything is going well on linux client as nslookup, ping by host etc in entire subnet. We are getting problem in windows client as nslookup working as well but not ping. all the firewall is disabled and... (5 Replies)
Discussion started by: boby.kumar
5 Replies

4. Linux

How to add a client to DNS server

Hi all, What is the procedure to add a client to a DNS server. what are the settings and files need to be added/changed ? thanks in advance! (6 Replies)
Discussion started by: lramsb4u
6 Replies

5. IP Networking

How to Determine client's DNS server Ip

Is there a way for a server to determine client's DNS ip? I have an application that logs client's IP but in certain cases its desirable to know their DNS too (1 Reply)
Discussion started by: vickylife
1 Replies

6. Debian

PB : DNS Client don't ping internet

Hi, I have my router (192.168.1.1) connected to the internet. I have installed Debian on a server with Bind9 (192.168.1.254). The configurations files are : $ cat /etc/network/interfaces # The loopback network interface auto lo iface lo inet loopback # The primary network interface... (1 Reply)
Discussion started by: Thibault
1 Replies

7. IP Networking

HOWTO: Linux multihomed dns client

The Linux resolver queries all nameservers in the order they are listed in /etc/resolver.conf. If a nameserver times out, it advances on to the following nameserver. But, if a nameserver returns "not found" (NXDOMAIN) it stops. This behaviour is problematic when you need to resolve names from... (0 Replies)
Discussion started by: colemar
0 Replies

8. Solaris

Solaris DNS Client For Microsoft DNS Server

hey guys, how to add soalris box as a microsoft DNS Client ? and how to register in the microsoft DNS ?? i managed to query from the DNS server after adding /etc/resolve.conf and editing /etc/nsswitch.conf but i need to register the soalris server (dns Client) into Microsoft DNS automatically.... (3 Replies)
Discussion started by: mduweik
3 Replies

9. UNIX for Advanced & Expert Users

DNS client nslookup

Hello, I just got done setting up a DNS server and a client. However, when I do an nslookup with just the hostname, I got this output: Microsoft Windows 2000 (C) Copyright 1985-2000 Microsoft Corp. C:\Documents and Settings\dev9>nslookup dev9 Server: webdev.testsurgemail.com Address:... (3 Replies)
Discussion started by: xnightcrawl
3 Replies
Login or Register to Ask a Question