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