DNS client - what exactly it is


 
Thread Tools Search this Thread
Operating Systems Solaris DNS client - what exactly it is
# 1  
Old 01-06-2016
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 ?

Code:
svcs -a | grep dns
disabled svc:/network/dns/client:default
disabled svc:/network/dns/server:default

================================

DNS client service is disabled and yet i am sending DNS request to be resolved successfully.

Am i a DNS client ? what does the DNS client service actually does ?

Confused Noob.

Last edited by DukeNuke2; 01-06-2016 at 03:58 PM..
# 2  
Old 01-06-2016
nslookup is indeed a DNS client but your Solaris box might not be configured as a DNS client, i.e. doesn't resolve names through the DNS service.

For example if this command doesn't work, you would enable the dns client service:
Code:
ping www.unix.com

Are you sure you are running Solaris 10 and not Solaris 11 ?
This User Gave Thanks to jlliagre For This Post:
# 3  
Old 01-07-2016
I have never bothered about the svc:/network/dns/client:default
In fact it is disabled on most Solaris 10 boxes; not needed.
It is not a service, just a status that can be used as a requirement for other services.
Code:
# svcs -l svc:/network/dns/client:default
fmri         svc:/network/dns/client:default
name         DNS resolver
enabled      false
state        disabled
next_state   none
state_time   Sat Sep 26 19:26:57 2015
restarter    svc:/system/svc/restarter:default
dependency   require_all/none svc:/system/filesystem/minimal (online)
dependency   require_all/none svc:/network/service (online)
dependency   require_all/none file://localhost/etc/resolv.conf (online)
dependency   require_any/error svc:/network/loopback (online)
dependency   optional_all/error svc:/milestone/network (online)

The following does the libc host resolving (just like ping, but without doing a ping)
Code:
getent hosts www.unix.com

This User Gave Thanks to MadeInGermany For This Post:
# 4  
Old 01-07-2016
Yes, you are right. I just checked on Solaris 10 machine configured with DHCP and being a DNS client and the dns/client client is nevertheless reported as disabled.

Code:
# cat /etc/resolv.conf
nameserver 212.27.40.240
nameserver 212.27.40.241
# grep "^hosts"  /etc/nsswitch.conf
hosts: files dns # Added by DHCP
# getent hosts www.unix.com
4.59.125.171    www.unix.com
# svcs dns/client
STATE          STIME    FMRI
disabled       23:18:38 svc:/network/dns/client:default
# cat /etc/release
                    Oracle Solaris 10 1/13 s10x_u11wos_24a X86
  Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.
                            Assembled 17 January 2013

This User Gave Thanks to jlliagre For This Post:
# 5  
Old 01-07-2016
Quote:
Originally Posted by jlliagre
Yes, you are right. I just checked on Solaris 10 machine configured with DHCP and being a DNS client and the dns/client client is nevertheless reported as disabled.

Code:
# cat /etc/resolv.conf
nameserver 212.27.40.240
nameserver 212.27.40.241
# grep "^hosts"  /etc/nsswitch.conf
hosts: files dns # Added by DHCP
# getent hosts www.unix.com
4.59.125.171    www.unix.com
# svcs dns/client
STATE          STIME    FMRI
disabled       23:18:38 svc:/network/dns/client:default
# cat /etc/release
                    Oracle Solaris 10 1/13 s10x_u11wos_24a X86
  Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.
                            Assembled 17 January 2013


Hi jlliagre, MadeInGermany,

Yea.. thanks for your advices.

That's precisely where I am confused. The use of this DNS client service. Seems pretty redundant ?

I am thinking if this is turn on, maybe DNS caching will take place ?

Hmm.

Regards,
Noob
# 6  
Old 01-08-2016
No it won't have a practical effect.
The nscd service does host caching:
Code:
svcs svc:/system/name-service-cache:default
nscd -g | awk '$1=="CACHE:" {if ($2=="hosts") p=1; else p=0} p>0'

This User Gave Thanks to MadeInGermany For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

8 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. 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

3. 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

4. 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

5. Solaris

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 -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 #... (3 Replies)
Discussion started by: vaibhav.kanchan
3 Replies

6. 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

7. 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

8. 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