LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 11-16-2018, 05:19 PM   #1
yashraj221087
Member
 
Registered: Jul 2010
Posts: 44

Rep: Reputation: 0
How to add new solaris client IP into Solaris 10 DNS server


Hi,

We just built a new Solaris 10 zone. And would like to add it to our DNS server. Its also Solaris 10. Please let me know how can I get the IP resolved using this DNS server. I added entry into zone config file but not working. I did restarted the DNS services. And also added nameserver name into resolv.conf

Quote:
bash-3.2# nslookup test-dev2-web-01 192.168.x.y
Server: 192.168.x.y
Address: 192.168.x.y#53

** server can't find test-dev2-web-01: REFUSED

Quote:
bash-3.2# cat /etc/resolv.conf
domain xysystem.com
nameserver 192.168.x.y
search xysystem.com


Please let me know what I am missing.
 
Old 11-17-2018, 10:48 AM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Please use [code] tags for commands and output.
Not sure why you're obfuscating private IP addresses...it's a bit confusing.

You're asking why the change to your name server isn't working, but you're not showing us what you did to make that change. Makes it difficult to help you.
 
Old 11-17-2018, 11:10 PM   #3
yashraj221087
Member
 
Registered: Jul 2010
Posts: 44

Original Poster
Rep: Reputation: 0
Okay. Here are the details.

Quote:
bash-3.00# nslookup test-dev2-web-01 192.168.30.225
Server: 192.168.30.225
Address: 192.168.30.225#53

** server can't find test-dev2-web-01: REFUSED
And
The changes I did was, added A record into zone files under /var/named on DNS name server (192.168.30.225).

Quote:
bash-3.00# cat db.testsystem.com | grep 192.168.10.239
test-dev2-web-01 IN A 192.168.10.239 ;DEV 2.0 Web-01
Restarted DNS server service.

Quote:
bash-3.00# svcadm refresh svc:/network/dns/server:default
Also my "allow" entry from named.conf file is as below:

Quote:
bash-3.00# grep allow /etc/named.conf
allow-query { any; };
// allow-recursion { corpnets; };
// #allow-query { 8.15.22.0/24; 192.168.173.0/24; };
allow-transfer {
allow-query-cache { none; };
My resolv.conf on client is :

Quote:
bash-3.00# cat /etc/resolv.conf
domain testsystem.com
nameserver 192.168.30.225
search testsystem.com

Please let me know if I need to do anything else here.

Last edited by yashraj221087; 11-17-2018 at 11:15 PM. Reason: updates needed
 
Old 11-17-2018, 11:15 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Sorry, really need the answer to my question:
What did you change in the DNS?
 
Old 11-18-2018, 09:02 PM   #5
yashraj221087
Member
 
Registered: Jul 2010
Posts: 44

Original Poster
Rep: Reputation: 0
When you say "change in DNS", you mean DNS server right?

I did changed zones db files in under /var/named. I added client IP address and name i.e. A record and PTR record in zone files. Then restarted the dns server service.

Let me know if this clarifies your question.
 
Old 11-18-2018, 10:38 PM   #6
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
IDK. Doesn't the allow-query belong in the named.conf? Can you query anything in that name server?
 
Old 11-18-2018, 11:21 PM   #7
yashraj221087
Member
 
Registered: Jul 2010
Posts: 44

Original Poster
Rep: Reputation: 0
Quote:
bash-3.00# grep allow /etc/named.conf
allow-query { any; };
// allow-recursion { corpnets; };
// #allow-query { 8.15.22.0/24; 192.168.173.0/24; };
allow-transfer {
allow-query-cache { none; };
Yes, the other clients are able to resolve.

Quote:
bash-3.00# nslookup stage-dev1-web-01 192.168.30.225
Server: 192.168.30.225
Address: 192.168.30.225#53

Name: stage-dev1-web-01.testsystem.com
Address: 192.168.10.169

Last edited by yashraj221087; 11-18-2018 at 11:23 PM.
 
Old 11-19-2018, 09:01 AM   #8
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Your OP: nslookup test-dev2-web-01 192.168.30.225

#7: nslookup stage-dev1-web-01 192.168.30.225

...not looking to resolve the same name ??

Can other clients resolve test-dev2-web-01 ?
If so, the problem is in the first client you were on.
If not, the problem is in the named.conf on the DNS server.

Last edited by scasey; 11-19-2018 at 09:03 AM.
 
Old 11-19-2018, 09:05 AM   #9
yashraj221087
Member
 
Registered: Jul 2010
Posts: 44

Original Poster
Rep: Reputation: 0
What you mean?

Those are 2 different clients.

I am able to query the existing client.


Quote:
Code:
bash-3.00# nslookup stage-dev1-web-01 192.168.30.225
Server: 192.168.30.225
Address: 192.168.30.225#53

Name: stage-dev1-web-01.testsystem.com
Address: 192.168.10.169
But I am NOT able to query the new client which is added to dns server.


Quote:
bash-3.00# nslookup test-dev2-web-01 192.168.30.225
Server: 192.168.30.225
Address: 192.168.30.225#53

** server can't find test-dev2-web-01: REFUSED
Hope you get what I am trying to explain here..
 
Old 11-19-2018, 09:12 AM   #10
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
I'm asking if you can query the new client from any other client. If not, there's a problem in your configuration on the DNS server.
Compare what you've added there in both named.conf and the new zone file you should have created to the entries and zone file of a server that does resolve.

You've not shared what changes/additions you made to the DNS server...makes it difficult to help...but a careful review of those changes should show you the problem.
 
Old 11-19-2018, 09:20 AM   #11
yashraj221087
Member
 
Registered: Jul 2010
Posts: 44

Original Poster
Rep: Reputation: 0
I don;t know if you are looking at my replies. I already shared what I have done on dns server.

Below are my from previous replies: This is from DNS server..

Quote:
bash-3.00# cat db.testsystem.com | grep 192.168.10.239
test-dev2-web-01 IN A 192.168.10.239 ;DEV 2.0 Web-01
I did changed zones db files in under /var/named. I added client IP address and name i.e. A record and PTR record in zone files. Then restarted the dns server service.
 
Old 11-19-2018, 08:06 PM   #12
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by yashraj221087 View Post
I don;t know if you are looking at my replies. I already shared what I have done on dns server.
I did changed zones db files in under /var/named. I added client IP address and name i.e. A record and PTR record in zone files. Then restarted the dns server service.
I'm reading your replies.
Code:
cat db.testsystem.com | grep 192.168.10.239
test-dev2-web-01 IN A 192.168.10.239 ;DEV 2.0 Web-01
Shows that there is one line in a file that seems to define an A record for 239...
Have you referenced that file correctly in your named.conf? We don't know.
Have you updated the Serial Number correctly?
Do the entries in named.conf and a working db file match the new entries?
What did you change in /var/named ?
What does the related entry in named.conf look like?
What does the entire db.testsystem.com file look like?
 
Old 11-20-2018, 03:46 PM   #13
yashraj221087
Member
 
Registered: Jul 2010
Posts: 44

Original Poster
Rep: Reputation: 0
can you let me know how can I restart the named daemon or named process in DNS name server?
 
Old 11-20-2018, 04:02 PM   #14
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Have you tried this?
I presumed that if you were adding records to your DNS server you are the admin, and would know that you needed to restart named...and had already done so.
I’m not sure enough about how to do that on Solaris to advise you. Another option is to contact Oracle Support.

Last edited by scasey; 11-20-2018 at 05:32 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dns client cannot resolve on dns server jtvillegas Linux - Software 3 03-12-2016 03:30 PM
Need help sshing from one server into another then into a client and cd'ing Jxnoel Linux - Software 3 07-08-2012 10:07 AM
Configuring a Solaris 10 server as a DNS Client? Les Windoze Solaris / OpenSolaris 2 06-22-2012 12:13 AM
What should I add into my xorg.conf file to add a resolution? gannggstaz Linux - Desktop 2 09-30-2009 06:06 PM
How to configure DNS Server & DNS Client in RHEL4 chanakkya Linux - Networking 1 07-05-2009 01:41 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration