INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Local DNS resolving works, but external nameservers cannot resolve

Local DNS resolving works, but external nameservers cannot resolve

Local DNS resolving works, but external nameservers cannot resolve

(OP)
Hello,

I have Bind9 installed on a RedHat 5.11 server and i am trying to configure a new zone in my nameserver.
This zone is a little more complicated that the rest of my zones because the domain of the url should be hosted on my nameserver but the webserver hosting the website is a server that does not belong to the company i work.
This is how i configured my zone file for this domain:
$TTL 604800
$ORIGIN <domain>.
@ IN SOA <my_nameserver>. postmaster.semltd.com.cy. (
2016060103 ; serial
12H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

IN NS <my_nameserver>.
IN NS <secondary_dns>.
<my_nameserver>. IN A <nameserver_ip>
www IN A <webserver_ip>

when i try to resolve the domain locally i can get a successfull answer:
dig <domain>

; <<>> DiG 9.7.4-P1-RedHat-9.7.4-1.P1.el5 <<>> <domain>
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34272
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;<domain>. IN A

;; ANSWER SECTION:
<domain>. 604800 IN A <webserver_ip>

;; AUTHORITY SECTION:
<domain>. 604800 IN NS <nameserver>.
<domain>. 604800 IN NS <secondary_dns>.

;; ADDITIONAL SECTION:
<nameserver>. 604800 IN A <ip_address>
<secondary_dns>. 86392 IN A <ip_address>

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Jun 1 09:47:57 2016
;; MSG SIZE rcvd: 136

when i try to resolve the domain from an external nameserver (8.8.8.8 for google) i get a SERVFAIL error:

dig @8.8.8.8 <domain>

; <<>> DiG 9.7.4-P1-RedHat-9.7.4-1.P1.el5 <<>> @8.8.8.8 <domain>
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 59192
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;<domain>. IN A

;; Query time: 3169 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed Jun 1 09:48:18 2016
;; MSG SIZE rcvd: 38

Does anybody has any idea why i am facing this problem?

Thank you.

RE: Local DNS resolving works, but external nameservers cannot resolve

If you are getting SERVFAIL then something is misconfigured on the external authoritative server for the <domain>. Please check that.
You could also use "+trace" option for "dig" for debugging.

RE: Local DNS resolving works, but external nameservers cannot resolve

(OP)
OK thank you for your reply.
From the trace i can see that is looking for a dns server that is not mine.
I will notify them that they need to contact their old dns hosts to remove their zone from their configuration.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close