Nameserver responding REFUSED on Centos 7DNS Server on Fedora 11DNS zones and named filesSetting up a DNS name server for a mass virtual host with Bind9Nameserver does not have A recordCentOS BIND DNS Troubleshooting?Two nameserver questionsDNS BIND on CENTOS 6.3 and domain nameserversQuestions about DNS, BIND and setupCannot find solution to “One or more of your nameservers did not return any of your NS records.” on intoDNS siteNeed help for configuring a dns server

Make all the squares explode

Why in a Ethernet LAN, a packet sniffer can obtain all packets sent over the LAN?

Who was this character from the Tomb of Annihilation adventure before they became a monster?

How are Core iX names like Core i5, i7 related to Haswell, Ivy Bridge?

How do I compare the result of "1d20+x, with advantage" to "1d20+y, without advantage", assuming x < y?

How can a Lich look like a human without magic?

Exception propagation: When should I catch exceptions?

Ex-manager wants to stay in touch, I don't want to

Why is this int array not passed as an object vararg array?

How did Thanos not realise this had happened at the end of Endgame?

Should these notes be played as a chord or one after another?

Why does getw return -1 when trying to read a character?

How to slow yourself down (for playing nice with others)

Word for being out at night during curfew

What does "Ich wusste, dass aus dir mal was wird" mean?

When a land becomes a creature, is it untapped?

How to make a language evolve quickly?

SSD - Disk is OK, one bad sector

Why does the Earth follow an elliptical trajectory rather than a parabolic one?

On studying Computer Science vs. Software Engineering to become a proficient coder

Are there variations of the regular runtimes of the Big-O-Notation?

tikz: not so precise graphic

Was there ever any real use for a 6800-based Apple I?

What's the word for the soldier salute?



Nameserver responding REFUSED on Centos 7


DNS Server on Fedora 11DNS zones and named filesSetting up a DNS name server for a mass virtual host with Bind9Nameserver does not have A recordCentOS BIND DNS Troubleshooting?Two nameserver questionsDNS BIND on CENTOS 6.3 and domain nameserversQuestions about DNS, BIND and setupCannot find solution to “One or more of your nameservers did not return any of your NS records.” on intoDNS siteNeed help for configuring a dns server






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








-2















I have domain registered with godaddy. I had set up custom hostname on godaddy and used same nameservers for the domain.
ns1.domain.com and ns2.domain.com (both hostnames are pointing to same ip)



Now I had configured my server with Centos 7 and centos web panel. Below are data of few files which is necessary for setting up DNS. The problem is with DNS that nameserver is not working. Please help me solve this issue. IP: 142.54.176.130 and Domain: getfreereallikes.com



/etc/named.conf:



//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a any DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// See the BIND Administrator's Reference Manual (ARM) for details about the
// configuration located in /usr/share/doc/bind-version/Bv9ARM.html

options
listen-on port 53 any; ;
listen-on-v6 port 53 ::1; ;
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
recursing-file "/var/named/data/named.recursing";
secroots-file "/var/named/data/named.secroots";
allow-query any; ;

/*
- If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
- If you are building a RECURSIVE (caching) DNS server, you need to enable
recursion.
- If your recursive DNS server has a public IP address, you MUST enable access
control to limit queries to your legitimate users. Failing to do so will
cause your server to become part of large scale DNS amplification
attacks. Implementing BCP38 within your network would greatly
reduce such attack surface
*/
recursion no;

dnssec-enable yes;
dnssec-validation no;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

managed-keys-directory "/var/named/dynamic";

pid-file "/run/named/named.pid";
session-keyfile "/run/named/session.key";
;

logging
channel default_debug
file "data/named.run";
severity dynamic;
;
;

zone "." IN
type hint;
file "named.ca";
;

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";


zone "ns1.getfreereallikes.com" type master;file "/var/named/ns1.getfreereallikes.com.db";;
zone "ns2.getfreereallikes.com" type master;file "/var/named/ns2.getfreereallikes.com.db";;


/var/named/ns1.getfreereallikes.com.db:



; Panel %version%
; Zone file for ns1.getfreereallikes.com
$TTL 14400
ns1.getfreereallikes.com. 86400 IN SOA ns1.getfreereallikes.com. info.centos-webpanel.com. (
2013071600 ;serial, todays date+todays
86400 ;refresh, seconds
7200 ;retry, seconds
3600000 ;expire, seconds
86400 ;minimum, seconds
)
ns1.getfreereallikes.com. 86400 IN NS ns1.getfreereallikes.com.
ns1.getfreereallikes.com. 86400 IN NS ns2.getfreereallikes.com.
ns1.getfreereallikes.com. 14400 IN A 142.54.176.130


/var/named/getfreereallikes.com.db:



; Generated by CWP
; Zone file for krushimitra.co.in
$TTL 14400
getfreereallikes.com. 86400 IN SOA ns1.getfreereallikes.com. email.gmail.com. (
2019050200 ;serial, todays date+todays
86400 ;refresh, seconds
7200 ;retry, seconds
3600000 ;expire, seconds
86400
)


getfreereallikes.com. 86400 IN NS ns1.getfreereallikes.com.
getfreereallikes.com. 86400 IN NS ns2.getfreereallikes.com.
getfreereallikes.com. 0 IN A 142.54.176.130
localhost.getfreereallikes.com. 0 IN A 127.0.0.1
getfreereallikes.com. 0 IN MX 5 getfreereallikes.com.
mail 0 IN CNAME getfreereallikes.com.
www 0 IN CNAME getfreereallikes.com.
ftp 0 IN CNAME getfreereallikes.com.
; Add additional below this line
_dmarc 14400 IN TXT "v=DMARC1; p=none"
ns1 14400 IN A 142.54.176.130
ns2 14400 IN A 142.54.176.130


/etc/resolv.conf:



# Generated by NetworkManager
search getfreereallikes.com
nameserver 127.0.0.1


dig @ 142.54.176.130 www.getfreereallikes.com:



; <<>> DiG 9.9.4-RedHat-9.9.4-73.el7_6 <<>> @142.54.176.130 www.getfreereallikes.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 2624
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.getfreereallikes.com. IN A

;; Query time: 0 msec
;; SERVER: 142.54.176.130#53(142.54.176.130)
;; WHEN: Thu May 02 05:56:26 CDT 2019
;; MSG SIZE rcvd: 53









share|improve this question
























  • Your /etc/resolv.conf is mostly irrelevant here. You should indeed as you show always use dig with the @ flag to query a specific nameserver.

    – Patrick Mevzek
    May 2 at 19:08











  • Two tools that can be useful also: named-checkconf to check your whole configuration, and named-checkzone to test a specific zone, and make sure its content is ok.

    – Patrick Mevzek
    May 2 at 19:09

















-2















I have domain registered with godaddy. I had set up custom hostname on godaddy and used same nameservers for the domain.
ns1.domain.com and ns2.domain.com (both hostnames are pointing to same ip)



Now I had configured my server with Centos 7 and centos web panel. Below are data of few files which is necessary for setting up DNS. The problem is with DNS that nameserver is not working. Please help me solve this issue. IP: 142.54.176.130 and Domain: getfreereallikes.com



/etc/named.conf:



//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a any DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// See the BIND Administrator's Reference Manual (ARM) for details about the
// configuration located in /usr/share/doc/bind-version/Bv9ARM.html

options
listen-on port 53 any; ;
listen-on-v6 port 53 ::1; ;
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
recursing-file "/var/named/data/named.recursing";
secroots-file "/var/named/data/named.secroots";
allow-query any; ;

/*
- If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
- If you are building a RECURSIVE (caching) DNS server, you need to enable
recursion.
- If your recursive DNS server has a public IP address, you MUST enable access
control to limit queries to your legitimate users. Failing to do so will
cause your server to become part of large scale DNS amplification
attacks. Implementing BCP38 within your network would greatly
reduce such attack surface
*/
recursion no;

dnssec-enable yes;
dnssec-validation no;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

managed-keys-directory "/var/named/dynamic";

pid-file "/run/named/named.pid";
session-keyfile "/run/named/session.key";
;

logging
channel default_debug
file "data/named.run";
severity dynamic;
;
;

zone "." IN
type hint;
file "named.ca";
;

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";


zone "ns1.getfreereallikes.com" type master;file "/var/named/ns1.getfreereallikes.com.db";;
zone "ns2.getfreereallikes.com" type master;file "/var/named/ns2.getfreereallikes.com.db";;


/var/named/ns1.getfreereallikes.com.db:



; Panel %version%
; Zone file for ns1.getfreereallikes.com
$TTL 14400
ns1.getfreereallikes.com. 86400 IN SOA ns1.getfreereallikes.com. info.centos-webpanel.com. (
2013071600 ;serial, todays date+todays
86400 ;refresh, seconds
7200 ;retry, seconds
3600000 ;expire, seconds
86400 ;minimum, seconds
)
ns1.getfreereallikes.com. 86400 IN NS ns1.getfreereallikes.com.
ns1.getfreereallikes.com. 86400 IN NS ns2.getfreereallikes.com.
ns1.getfreereallikes.com. 14400 IN A 142.54.176.130


/var/named/getfreereallikes.com.db:



; Generated by CWP
; Zone file for krushimitra.co.in
$TTL 14400
getfreereallikes.com. 86400 IN SOA ns1.getfreereallikes.com. email.gmail.com. (
2019050200 ;serial, todays date+todays
86400 ;refresh, seconds
7200 ;retry, seconds
3600000 ;expire, seconds
86400
)


getfreereallikes.com. 86400 IN NS ns1.getfreereallikes.com.
getfreereallikes.com. 86400 IN NS ns2.getfreereallikes.com.
getfreereallikes.com. 0 IN A 142.54.176.130
localhost.getfreereallikes.com. 0 IN A 127.0.0.1
getfreereallikes.com. 0 IN MX 5 getfreereallikes.com.
mail 0 IN CNAME getfreereallikes.com.
www 0 IN CNAME getfreereallikes.com.
ftp 0 IN CNAME getfreereallikes.com.
; Add additional below this line
_dmarc 14400 IN TXT "v=DMARC1; p=none"
ns1 14400 IN A 142.54.176.130
ns2 14400 IN A 142.54.176.130


/etc/resolv.conf:



# Generated by NetworkManager
search getfreereallikes.com
nameserver 127.0.0.1


dig @ 142.54.176.130 www.getfreereallikes.com:



; <<>> DiG 9.9.4-RedHat-9.9.4-73.el7_6 <<>> @142.54.176.130 www.getfreereallikes.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 2624
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.getfreereallikes.com. IN A

;; Query time: 0 msec
;; SERVER: 142.54.176.130#53(142.54.176.130)
;; WHEN: Thu May 02 05:56:26 CDT 2019
;; MSG SIZE rcvd: 53









share|improve this question
























  • Your /etc/resolv.conf is mostly irrelevant here. You should indeed as you show always use dig with the @ flag to query a specific nameserver.

    – Patrick Mevzek
    May 2 at 19:08











  • Two tools that can be useful also: named-checkconf to check your whole configuration, and named-checkzone to test a specific zone, and make sure its content is ok.

    – Patrick Mevzek
    May 2 at 19:09













-2












-2








-2








I have domain registered with godaddy. I had set up custom hostname on godaddy and used same nameservers for the domain.
ns1.domain.com and ns2.domain.com (both hostnames are pointing to same ip)



Now I had configured my server with Centos 7 and centos web panel. Below are data of few files which is necessary for setting up DNS. The problem is with DNS that nameserver is not working. Please help me solve this issue. IP: 142.54.176.130 and Domain: getfreereallikes.com



/etc/named.conf:



//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a any DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// See the BIND Administrator's Reference Manual (ARM) for details about the
// configuration located in /usr/share/doc/bind-version/Bv9ARM.html

options
listen-on port 53 any; ;
listen-on-v6 port 53 ::1; ;
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
recursing-file "/var/named/data/named.recursing";
secroots-file "/var/named/data/named.secroots";
allow-query any; ;

/*
- If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
- If you are building a RECURSIVE (caching) DNS server, you need to enable
recursion.
- If your recursive DNS server has a public IP address, you MUST enable access
control to limit queries to your legitimate users. Failing to do so will
cause your server to become part of large scale DNS amplification
attacks. Implementing BCP38 within your network would greatly
reduce such attack surface
*/
recursion no;

dnssec-enable yes;
dnssec-validation no;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

managed-keys-directory "/var/named/dynamic";

pid-file "/run/named/named.pid";
session-keyfile "/run/named/session.key";
;

logging
channel default_debug
file "data/named.run";
severity dynamic;
;
;

zone "." IN
type hint;
file "named.ca";
;

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";


zone "ns1.getfreereallikes.com" type master;file "/var/named/ns1.getfreereallikes.com.db";;
zone "ns2.getfreereallikes.com" type master;file "/var/named/ns2.getfreereallikes.com.db";;


/var/named/ns1.getfreereallikes.com.db:



; Panel %version%
; Zone file for ns1.getfreereallikes.com
$TTL 14400
ns1.getfreereallikes.com. 86400 IN SOA ns1.getfreereallikes.com. info.centos-webpanel.com. (
2013071600 ;serial, todays date+todays
86400 ;refresh, seconds
7200 ;retry, seconds
3600000 ;expire, seconds
86400 ;minimum, seconds
)
ns1.getfreereallikes.com. 86400 IN NS ns1.getfreereallikes.com.
ns1.getfreereallikes.com. 86400 IN NS ns2.getfreereallikes.com.
ns1.getfreereallikes.com. 14400 IN A 142.54.176.130


/var/named/getfreereallikes.com.db:



; Generated by CWP
; Zone file for krushimitra.co.in
$TTL 14400
getfreereallikes.com. 86400 IN SOA ns1.getfreereallikes.com. email.gmail.com. (
2019050200 ;serial, todays date+todays
86400 ;refresh, seconds
7200 ;retry, seconds
3600000 ;expire, seconds
86400
)


getfreereallikes.com. 86400 IN NS ns1.getfreereallikes.com.
getfreereallikes.com. 86400 IN NS ns2.getfreereallikes.com.
getfreereallikes.com. 0 IN A 142.54.176.130
localhost.getfreereallikes.com. 0 IN A 127.0.0.1
getfreereallikes.com. 0 IN MX 5 getfreereallikes.com.
mail 0 IN CNAME getfreereallikes.com.
www 0 IN CNAME getfreereallikes.com.
ftp 0 IN CNAME getfreereallikes.com.
; Add additional below this line
_dmarc 14400 IN TXT "v=DMARC1; p=none"
ns1 14400 IN A 142.54.176.130
ns2 14400 IN A 142.54.176.130


/etc/resolv.conf:



# Generated by NetworkManager
search getfreereallikes.com
nameserver 127.0.0.1


dig @ 142.54.176.130 www.getfreereallikes.com:



; <<>> DiG 9.9.4-RedHat-9.9.4-73.el7_6 <<>> @142.54.176.130 www.getfreereallikes.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 2624
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.getfreereallikes.com. IN A

;; Query time: 0 msec
;; SERVER: 142.54.176.130#53(142.54.176.130)
;; WHEN: Thu May 02 05:56:26 CDT 2019
;; MSG SIZE rcvd: 53









share|improve this question
















I have domain registered with godaddy. I had set up custom hostname on godaddy and used same nameservers for the domain.
ns1.domain.com and ns2.domain.com (both hostnames are pointing to same ip)



Now I had configured my server with Centos 7 and centos web panel. Below are data of few files which is necessary for setting up DNS. The problem is with DNS that nameserver is not working. Please help me solve this issue. IP: 142.54.176.130 and Domain: getfreereallikes.com



/etc/named.conf:



//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a any DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// See the BIND Administrator's Reference Manual (ARM) for details about the
// configuration located in /usr/share/doc/bind-version/Bv9ARM.html

options
listen-on port 53 any; ;
listen-on-v6 port 53 ::1; ;
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
recursing-file "/var/named/data/named.recursing";
secroots-file "/var/named/data/named.secroots";
allow-query any; ;

/*
- If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
- If you are building a RECURSIVE (caching) DNS server, you need to enable
recursion.
- If your recursive DNS server has a public IP address, you MUST enable access
control to limit queries to your legitimate users. Failing to do so will
cause your server to become part of large scale DNS amplification
attacks. Implementing BCP38 within your network would greatly
reduce such attack surface
*/
recursion no;

dnssec-enable yes;
dnssec-validation no;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

managed-keys-directory "/var/named/dynamic";

pid-file "/run/named/named.pid";
session-keyfile "/run/named/session.key";
;

logging
channel default_debug
file "data/named.run";
severity dynamic;
;
;

zone "." IN
type hint;
file "named.ca";
;

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";


zone "ns1.getfreereallikes.com" type master;file "/var/named/ns1.getfreereallikes.com.db";;
zone "ns2.getfreereallikes.com" type master;file "/var/named/ns2.getfreereallikes.com.db";;


/var/named/ns1.getfreereallikes.com.db:



; Panel %version%
; Zone file for ns1.getfreereallikes.com
$TTL 14400
ns1.getfreereallikes.com. 86400 IN SOA ns1.getfreereallikes.com. info.centos-webpanel.com. (
2013071600 ;serial, todays date+todays
86400 ;refresh, seconds
7200 ;retry, seconds
3600000 ;expire, seconds
86400 ;minimum, seconds
)
ns1.getfreereallikes.com. 86400 IN NS ns1.getfreereallikes.com.
ns1.getfreereallikes.com. 86400 IN NS ns2.getfreereallikes.com.
ns1.getfreereallikes.com. 14400 IN A 142.54.176.130


/var/named/getfreereallikes.com.db:



; Generated by CWP
; Zone file for krushimitra.co.in
$TTL 14400
getfreereallikes.com. 86400 IN SOA ns1.getfreereallikes.com. email.gmail.com. (
2019050200 ;serial, todays date+todays
86400 ;refresh, seconds
7200 ;retry, seconds
3600000 ;expire, seconds
86400
)


getfreereallikes.com. 86400 IN NS ns1.getfreereallikes.com.
getfreereallikes.com. 86400 IN NS ns2.getfreereallikes.com.
getfreereallikes.com. 0 IN A 142.54.176.130
localhost.getfreereallikes.com. 0 IN A 127.0.0.1
getfreereallikes.com. 0 IN MX 5 getfreereallikes.com.
mail 0 IN CNAME getfreereallikes.com.
www 0 IN CNAME getfreereallikes.com.
ftp 0 IN CNAME getfreereallikes.com.
; Add additional below this line
_dmarc 14400 IN TXT "v=DMARC1; p=none"
ns1 14400 IN A 142.54.176.130
ns2 14400 IN A 142.54.176.130


/etc/resolv.conf:



# Generated by NetworkManager
search getfreereallikes.com
nameserver 127.0.0.1


dig @ 142.54.176.130 www.getfreereallikes.com:



; <<>> DiG 9.9.4-RedHat-9.9.4-73.el7_6 <<>> @142.54.176.130 www.getfreereallikes.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 2624
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.getfreereallikes.com. IN A

;; Query time: 0 msec
;; SERVER: 142.54.176.130#53(142.54.176.130)
;; WHEN: Thu May 02 05:56:26 CDT 2019
;; MSG SIZE rcvd: 53






domain-name-system centos7 nameserver dns-zone






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 2 at 19:07









Patrick Mevzek

3,05731226




3,05731226










asked May 2 at 11:01









user521817user521817

1




1












  • Your /etc/resolv.conf is mostly irrelevant here. You should indeed as you show always use dig with the @ flag to query a specific nameserver.

    – Patrick Mevzek
    May 2 at 19:08











  • Two tools that can be useful also: named-checkconf to check your whole configuration, and named-checkzone to test a specific zone, and make sure its content is ok.

    – Patrick Mevzek
    May 2 at 19:09

















  • Your /etc/resolv.conf is mostly irrelevant here. You should indeed as you show always use dig with the @ flag to query a specific nameserver.

    – Patrick Mevzek
    May 2 at 19:08











  • Two tools that can be useful also: named-checkconf to check your whole configuration, and named-checkzone to test a specific zone, and make sure its content is ok.

    – Patrick Mevzek
    May 2 at 19:09
















Your /etc/resolv.conf is mostly irrelevant here. You should indeed as you show always use dig with the @ flag to query a specific nameserver.

– Patrick Mevzek
May 2 at 19:08





Your /etc/resolv.conf is mostly irrelevant here. You should indeed as you show always use dig with the @ flag to query a specific nameserver.

– Patrick Mevzek
May 2 at 19:08













Two tools that can be useful also: named-checkconf to check your whole configuration, and named-checkzone to test a specific zone, and make sure its content is ok.

– Patrick Mevzek
May 2 at 19:09





Two tools that can be useful also: named-checkconf to check your whole configuration, and named-checkzone to test a specific zone, and make sure its content is ok.

– Patrick Mevzek
May 2 at 19:09










1 Answer
1






active

oldest

votes


















2














You set up an authoritative only name server by disabling recursion with recursion no;



That means that your name server will only respond to queries for the domain names it considers itself authoritative.

That is a good thing!



The only domain names, "zones" in bind jargon, that you declare are:



zone "ns1.getfreereallikes.com" ...
zone "ns2.getfreereallikes.com" ...


Therefor a query for www.getfreereallikes.com will be refused as that is not a domain hosted by your name server.




You probably don't need separate zone files for ns[1-2].getfreereallikes.com and your intended config should probably be:



zone "getfreereallikes.com" type master;file "/var/named/getfreereallikes.com.db";;





share|improve this answer























  • ok lte me try and thanks for your reply

    – user521817
    May 2 at 12:04











  • it's still not working while executing dig @ 142.54.176.130 www.getfreereallikes.com

    – user521817
    May 2 at 12:11











  • ; <<>> DiG 9.9.4-RedHat-9.9.4-73.el7_6 <<>> @142.54.176.130 www.getfreereallikes.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 7686 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 ;; WARNING: recursion requested but not available ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;www.getfreereallikes.com. IN A ;; Query time: 0 msec ;; SERVER: 142.54.176.130#53(142.54.176.130) ;; WHEN: Thu May 02 07:13:57 CDT 2019 ;; MSG SIZE rcvd: 53

    – user521817
    May 2 at 12:14











  • @user521817 Please post your updates inside your first post not as comments, with full details (did you change the zonefile path? Did you restart bind? etc.). Also "both hostnames are pointing to same ip" is not a good idea. Are you absolutely sure you need to handle the DNS service for your domain? Why not use a specialized provider for that (either your registrar or a third pary) as it seems you are starting on that and hence playing with production zones is not a good idea, you should try to start learning on local toy zones to understand how the DNS and bind work.

    – Patrick Mevzek
    May 2 at 19:06











  • @user521817 Also did you look at your logfile? REFUSED from the nameserver clearly means it will not process the request, based on its current configuration. This should be marked in the logfile with some extra data that could help you. Note that your title is wrong, the nameserver DO reply, just with return code REFUSED. It is different from a server not replying at all (timeout) or a nameserver not reachable (refused connection at the IP level). I edited it.

    – Patrick Mevzek
    May 2 at 19:07












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f965547%2fnameserver-responding-refused-on-centos-7%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














You set up an authoritative only name server by disabling recursion with recursion no;



That means that your name server will only respond to queries for the domain names it considers itself authoritative.

That is a good thing!



The only domain names, "zones" in bind jargon, that you declare are:



zone "ns1.getfreereallikes.com" ...
zone "ns2.getfreereallikes.com" ...


Therefor a query for www.getfreereallikes.com will be refused as that is not a domain hosted by your name server.




You probably don't need separate zone files for ns[1-2].getfreereallikes.com and your intended config should probably be:



zone "getfreereallikes.com" type master;file "/var/named/getfreereallikes.com.db";;





share|improve this answer























  • ok lte me try and thanks for your reply

    – user521817
    May 2 at 12:04











  • it's still not working while executing dig @ 142.54.176.130 www.getfreereallikes.com

    – user521817
    May 2 at 12:11











  • ; <<>> DiG 9.9.4-RedHat-9.9.4-73.el7_6 <<>> @142.54.176.130 www.getfreereallikes.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 7686 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 ;; WARNING: recursion requested but not available ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;www.getfreereallikes.com. IN A ;; Query time: 0 msec ;; SERVER: 142.54.176.130#53(142.54.176.130) ;; WHEN: Thu May 02 07:13:57 CDT 2019 ;; MSG SIZE rcvd: 53

    – user521817
    May 2 at 12:14











  • @user521817 Please post your updates inside your first post not as comments, with full details (did you change the zonefile path? Did you restart bind? etc.). Also "both hostnames are pointing to same ip" is not a good idea. Are you absolutely sure you need to handle the DNS service for your domain? Why not use a specialized provider for that (either your registrar or a third pary) as it seems you are starting on that and hence playing with production zones is not a good idea, you should try to start learning on local toy zones to understand how the DNS and bind work.

    – Patrick Mevzek
    May 2 at 19:06











  • @user521817 Also did you look at your logfile? REFUSED from the nameserver clearly means it will not process the request, based on its current configuration. This should be marked in the logfile with some extra data that could help you. Note that your title is wrong, the nameserver DO reply, just with return code REFUSED. It is different from a server not replying at all (timeout) or a nameserver not reachable (refused connection at the IP level). I edited it.

    – Patrick Mevzek
    May 2 at 19:07
















2














You set up an authoritative only name server by disabling recursion with recursion no;



That means that your name server will only respond to queries for the domain names it considers itself authoritative.

That is a good thing!



The only domain names, "zones" in bind jargon, that you declare are:



zone "ns1.getfreereallikes.com" ...
zone "ns2.getfreereallikes.com" ...


Therefor a query for www.getfreereallikes.com will be refused as that is not a domain hosted by your name server.




You probably don't need separate zone files for ns[1-2].getfreereallikes.com and your intended config should probably be:



zone "getfreereallikes.com" type master;file "/var/named/getfreereallikes.com.db";;





share|improve this answer























  • ok lte me try and thanks for your reply

    – user521817
    May 2 at 12:04











  • it's still not working while executing dig @ 142.54.176.130 www.getfreereallikes.com

    – user521817
    May 2 at 12:11











  • ; <<>> DiG 9.9.4-RedHat-9.9.4-73.el7_6 <<>> @142.54.176.130 www.getfreereallikes.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 7686 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 ;; WARNING: recursion requested but not available ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;www.getfreereallikes.com. IN A ;; Query time: 0 msec ;; SERVER: 142.54.176.130#53(142.54.176.130) ;; WHEN: Thu May 02 07:13:57 CDT 2019 ;; MSG SIZE rcvd: 53

    – user521817
    May 2 at 12:14











  • @user521817 Please post your updates inside your first post not as comments, with full details (did you change the zonefile path? Did you restart bind? etc.). Also "both hostnames are pointing to same ip" is not a good idea. Are you absolutely sure you need to handle the DNS service for your domain? Why not use a specialized provider for that (either your registrar or a third pary) as it seems you are starting on that and hence playing with production zones is not a good idea, you should try to start learning on local toy zones to understand how the DNS and bind work.

    – Patrick Mevzek
    May 2 at 19:06











  • @user521817 Also did you look at your logfile? REFUSED from the nameserver clearly means it will not process the request, based on its current configuration. This should be marked in the logfile with some extra data that could help you. Note that your title is wrong, the nameserver DO reply, just with return code REFUSED. It is different from a server not replying at all (timeout) or a nameserver not reachable (refused connection at the IP level). I edited it.

    – Patrick Mevzek
    May 2 at 19:07














2












2








2







You set up an authoritative only name server by disabling recursion with recursion no;



That means that your name server will only respond to queries for the domain names it considers itself authoritative.

That is a good thing!



The only domain names, "zones" in bind jargon, that you declare are:



zone "ns1.getfreereallikes.com" ...
zone "ns2.getfreereallikes.com" ...


Therefor a query for www.getfreereallikes.com will be refused as that is not a domain hosted by your name server.




You probably don't need separate zone files for ns[1-2].getfreereallikes.com and your intended config should probably be:



zone "getfreereallikes.com" type master;file "/var/named/getfreereallikes.com.db";;





share|improve this answer













You set up an authoritative only name server by disabling recursion with recursion no;



That means that your name server will only respond to queries for the domain names it considers itself authoritative.

That is a good thing!



The only domain names, "zones" in bind jargon, that you declare are:



zone "ns1.getfreereallikes.com" ...
zone "ns2.getfreereallikes.com" ...


Therefor a query for www.getfreereallikes.com will be refused as that is not a domain hosted by your name server.




You probably don't need separate zone files for ns[1-2].getfreereallikes.com and your intended config should probably be:



zone "getfreereallikes.com" type master;file "/var/named/getfreereallikes.com.db";;






share|improve this answer












share|improve this answer



share|improve this answer










answered May 2 at 11:51









HBruijnHBruijn

57.6k1190153




57.6k1190153












  • ok lte me try and thanks for your reply

    – user521817
    May 2 at 12:04











  • it's still not working while executing dig @ 142.54.176.130 www.getfreereallikes.com

    – user521817
    May 2 at 12:11











  • ; <<>> DiG 9.9.4-RedHat-9.9.4-73.el7_6 <<>> @142.54.176.130 www.getfreereallikes.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 7686 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 ;; WARNING: recursion requested but not available ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;www.getfreereallikes.com. IN A ;; Query time: 0 msec ;; SERVER: 142.54.176.130#53(142.54.176.130) ;; WHEN: Thu May 02 07:13:57 CDT 2019 ;; MSG SIZE rcvd: 53

    – user521817
    May 2 at 12:14











  • @user521817 Please post your updates inside your first post not as comments, with full details (did you change the zonefile path? Did you restart bind? etc.). Also "both hostnames are pointing to same ip" is not a good idea. Are you absolutely sure you need to handle the DNS service for your domain? Why not use a specialized provider for that (either your registrar or a third pary) as it seems you are starting on that and hence playing with production zones is not a good idea, you should try to start learning on local toy zones to understand how the DNS and bind work.

    – Patrick Mevzek
    May 2 at 19:06











  • @user521817 Also did you look at your logfile? REFUSED from the nameserver clearly means it will not process the request, based on its current configuration. This should be marked in the logfile with some extra data that could help you. Note that your title is wrong, the nameserver DO reply, just with return code REFUSED. It is different from a server not replying at all (timeout) or a nameserver not reachable (refused connection at the IP level). I edited it.

    – Patrick Mevzek
    May 2 at 19:07


















  • ok lte me try and thanks for your reply

    – user521817
    May 2 at 12:04











  • it's still not working while executing dig @ 142.54.176.130 www.getfreereallikes.com

    – user521817
    May 2 at 12:11











  • ; <<>> DiG 9.9.4-RedHat-9.9.4-73.el7_6 <<>> @142.54.176.130 www.getfreereallikes.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 7686 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 ;; WARNING: recursion requested but not available ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;www.getfreereallikes.com. IN A ;; Query time: 0 msec ;; SERVER: 142.54.176.130#53(142.54.176.130) ;; WHEN: Thu May 02 07:13:57 CDT 2019 ;; MSG SIZE rcvd: 53

    – user521817
    May 2 at 12:14











  • @user521817 Please post your updates inside your first post not as comments, with full details (did you change the zonefile path? Did you restart bind? etc.). Also "both hostnames are pointing to same ip" is not a good idea. Are you absolutely sure you need to handle the DNS service for your domain? Why not use a specialized provider for that (either your registrar or a third pary) as it seems you are starting on that and hence playing with production zones is not a good idea, you should try to start learning on local toy zones to understand how the DNS and bind work.

    – Patrick Mevzek
    May 2 at 19:06











  • @user521817 Also did you look at your logfile? REFUSED from the nameserver clearly means it will not process the request, based on its current configuration. This should be marked in the logfile with some extra data that could help you. Note that your title is wrong, the nameserver DO reply, just with return code REFUSED. It is different from a server not replying at all (timeout) or a nameserver not reachable (refused connection at the IP level). I edited it.

    – Patrick Mevzek
    May 2 at 19:07

















ok lte me try and thanks for your reply

– user521817
May 2 at 12:04





ok lte me try and thanks for your reply

– user521817
May 2 at 12:04













it's still not working while executing dig @ 142.54.176.130 www.getfreereallikes.com

– user521817
May 2 at 12:11





it's still not working while executing dig @ 142.54.176.130 www.getfreereallikes.com

– user521817
May 2 at 12:11













; <<>> DiG 9.9.4-RedHat-9.9.4-73.el7_6 <<>> @142.54.176.130 www.getfreereallikes.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 7686 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 ;; WARNING: recursion requested but not available ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;www.getfreereallikes.com. IN A ;; Query time: 0 msec ;; SERVER: 142.54.176.130#53(142.54.176.130) ;; WHEN: Thu May 02 07:13:57 CDT 2019 ;; MSG SIZE rcvd: 53

– user521817
May 2 at 12:14





; <<>> DiG 9.9.4-RedHat-9.9.4-73.el7_6 <<>> @142.54.176.130 www.getfreereallikes.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 7686 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 ;; WARNING: recursion requested but not available ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;www.getfreereallikes.com. IN A ;; Query time: 0 msec ;; SERVER: 142.54.176.130#53(142.54.176.130) ;; WHEN: Thu May 02 07:13:57 CDT 2019 ;; MSG SIZE rcvd: 53

– user521817
May 2 at 12:14













@user521817 Please post your updates inside your first post not as comments, with full details (did you change the zonefile path? Did you restart bind? etc.). Also "both hostnames are pointing to same ip" is not a good idea. Are you absolutely sure you need to handle the DNS service for your domain? Why not use a specialized provider for that (either your registrar or a third pary) as it seems you are starting on that and hence playing with production zones is not a good idea, you should try to start learning on local toy zones to understand how the DNS and bind work.

– Patrick Mevzek
May 2 at 19:06





@user521817 Please post your updates inside your first post not as comments, with full details (did you change the zonefile path? Did you restart bind? etc.). Also "both hostnames are pointing to same ip" is not a good idea. Are you absolutely sure you need to handle the DNS service for your domain? Why not use a specialized provider for that (either your registrar or a third pary) as it seems you are starting on that and hence playing with production zones is not a good idea, you should try to start learning on local toy zones to understand how the DNS and bind work.

– Patrick Mevzek
May 2 at 19:06













@user521817 Also did you look at your logfile? REFUSED from the nameserver clearly means it will not process the request, based on its current configuration. This should be marked in the logfile with some extra data that could help you. Note that your title is wrong, the nameserver DO reply, just with return code REFUSED. It is different from a server not replying at all (timeout) or a nameserver not reachable (refused connection at the IP level). I edited it.

– Patrick Mevzek
May 2 at 19:07






@user521817 Also did you look at your logfile? REFUSED from the nameserver clearly means it will not process the request, based on its current configuration. This should be marked in the logfile with some extra data that could help you. Note that your title is wrong, the nameserver DO reply, just with return code REFUSED. It is different from a server not replying at all (timeout) or a nameserver not reachable (refused connection at the IP level). I edited it.

– Patrick Mevzek
May 2 at 19:07


















draft saved

draft discarded
















































Thanks for contributing an answer to Server Fault!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f965547%2fnameserver-responding-refused-on-centos-7%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020