LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 12-22-2015, 05:42 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Rep: Reputation: 45
Problem in local DNS server Centos 7


hi,
I am setting my own internet DNS server in CentOS 7 currently in non production environment for test purpose.
My Local DNS server IP is 10.1.83.10 and this server is connected with the ISP DNS .

For test point of view I only check it on my one client machine whoes IP address is 10.1.83.250. In the client side I give IP address of my local DNS server in "Local Area Connection" which is 10.1.83.10 and it fetch the webpages as well.

My windows xp computer which is running

Code:
IP Address:10.1.83.250
           255.255.255.0
Gateway    10.1.83.1
DNS        10.1.83.10

When I use nklookup command it show me server "Unknown"
Athe server side I also use

Code:
Edit /etc/sysconfig/named and set:

OPTIONS="-4"
When I run the command
Code:
# systemctl status named
I can also see IPV6 showing there.In my cause I am using only IPV4.
I am attaching the snaps here with.

Note: The file named1 and named2 are actually one file. Becuase it was not possible to take the screen short of the complete file that is why i take two screen shorts of it.

My dig command

Code:
[root@masterdns named]# dig -x 10.1.83.250

; <<>> DiG 9.9.4-RedHat-9.9.4-29.el7_2.1 <<>> -x 10.1.83.250
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3388
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;250.83.1.10.in-addr.arpa.      IN      PTR

;; ANSWER SECTION:
250.83.1.10.in-addr.arpa. 86400 IN      PTR     pdc.local.

;; AUTHORITY SECTION:
250.83.1.10.in-addr.arpa. 86400 IN      NS      masterdns.pdc.local.

;; ADDITIONAL SECTION:
masterdns.pdc.local.    86400   IN      A       10.1.83.10

;; Query time: 0 msec
;; SERVER: 10.1.83.10#53(10.1.83.10)
;; WHEN: Tue Dec 22 16:43:21 PKT 2015
;; MSG SIZE  rcvd: 116

[root@masterdns named]#
[root@masterdns named]#
[root@masterdns named]#
[root@masterdns named]# dig masterdns.pdc.local

; <<>> DiG 9.9.4-RedHat-9.9.4-29.el7_2.1 <<>> masterdns.pdc.local
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47046
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;masterdns.pdc.local.           IN      A

;; ANSWER SECTION:
masterdns.pdc.local.    86400   IN      A       10.1.83.10

;; AUTHORITY SECTION:
pdc.local.              86400   IN      NS      slavedns.ict-local.
pdc.local.              86400   IN      NS      masterdns.pdc.local.

;; Query time: 0 msec
;; SERVER: 10.1.83.10#53(10.1.83.10)
;; WHEN: Tue Dec 22 16:43:49 PKT 2015
;; MSG SIZE  rcvd: 120

[root@masterdns named]#


Thanks for guiding me
Attached Thumbnails
Click image for larger version

Name:	Named1.png
Views:	37
Size:	164.2 KB
ID:	20341   Click image for larger version

Name:	Named2.png
Views:	31
Size:	166.1 KB
ID:	20342   Click image for larger version

Name:	Forward.png
Views:	25
Size:	136.1 KB
ID:	20343   Click image for larger version

Name:	reverse.png
Views:	23
Size:	141.2 KB
ID:	20344   Click image for larger version

Name:	status name.png
Views:	25
Size:	151.4 KB
ID:	20345  


Last edited by gardenair; 12-22-2015 at 05:52 AM.
 
Old 12-22-2015, 08:31 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,753

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by gardenair View Post
hi,
I am setting my own internet DNS server in CentOS 7 currently in non production environment for test purpose. My Local DNS server IP is 10.1.83.10 and this server is connected with the ISP DNS . For test point of view I only check it on my one client machine whoes IP address is 10.1.83.250. In the client side I give IP address of my local DNS server in "Local Area Connection" which is 10.1.83.10 and it fetch the webpages as well.

My windows xp computer which is running
Code:
IP Address:10.1.83.250
           255.255.255.0
Gateway    10.1.83.1
DNS        10.1.83.10
When I use nklookup command it show me server "Unknown" Athe server side I also use
Code:
Edit /etc/sysconfig/named and set:
OPTIONS="-4"
When I run the command
Code:
# systemctl status named
I can also see IPV6 showing there.In my cause I am using only IPV4. I am attaching the snaps here with.
First, you're running WINDOWS XP....in 2015???? Secondly, we can't read the 'snaps', and there really wasn't anything preventing you from posting your configuration file. Since we can't read it, we can't tell you anything. Based on the single-word error message you posted "Unknown"...we can only assume that DNS isn't running, it doesn't have any master reference to resolve names further, or it's blocked by a firewall somewhere.
Quote:
Note: The file named1 and named2 are actually one file. Becuase it was not possible to take the screen short of the complete file that is why i take two screen shorts of it.

Thanks for guiding me
..and since the configuration file is nothing but text, why take a screen shot, rather than copy/paste?

And you've been working with/asking about DNS for FIVE YEARS now...we have tried 'guiding you' many times:
http://www.linuxquestions.org/questi...-linux-804063/
http://www.linuxquestions.org/questi...rminal-855527/
http://www.linuxquestions.org/questi...server-836923/
http://www.linuxquestions.org/questi...ddress-858477/
http://www.linuxquestions.org/questi...r-bind-822813/

Since you've said several times in the past that you successfully configured DNS, I'm not sure what you're asking for.
 
Old 12-22-2015, 08:36 AM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
You describe your configuration but I don't see any problem apart from the fact that named uses ipv6 (but the screenshot shows that it runs with option -4 ????).

So what's your problem?

I agree that the screenshots are unreadable. Attach text file instead.

Edit: I see now
Quote:
When I use nklookup command it show me server "Unknown"
Can you show the entire nslookup command, and the entire message?
Can you ping the DNS server from the XP client?
Can you access port 53 of the DNS server from the XP client?
Can you check name resolution with a third computer in the network?

Last edited by berndbausch; 12-22-2015 at 08:40 AM.
 
Old 12-22-2015, 10:21 PM   #4
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
Well I have Fix the issue.

Last edited by gardenair; 12-22-2015 at 11:04 PM.
 
Old 12-23-2015, 03:29 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,753

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by gardenair View Post
Well I have Fix the issue.
Well, that's GREAT. So how about sharing it with the rest of the community, since you came here asking for help?
 
Old 12-23-2015, 04:01 PM   #6
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by gardenair View Post
Well I have Fix the issue.
Can you share how you fixed it? It might be interesting for other people with similar problems.
 
Old 12-23-2015, 06:12 PM   #7
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
I suggest that when ever there is no work of IPV6 in your system always try to disable it.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CentOS BIND Local DNS server samarudge Linux - Server 6 11-29-2010 10:33 AM
DNS Server Problem in Centos belalju Linux - Server 3 05-06-2010 12:10 PM
Redirect local DNS query to remote DNS server on non standard port? rock_ya_baby Linux - Server 8 04-13-2010 04:31 AM
problem configuring dns server in centos soumalya Linux - Server 9 11-09-2008 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 06:34 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