• 3

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

I'm having a problem trying to look up a certain DNS name on the internet. For some reason I keep facing a SERVFAIL thought the correct result is displayed - like the DNS name is being resolved twice (external/local?).

I have no trouble looking up anything else, but this single DNS name gives me a headache. Other servers within my farm do lookups fine on this domain.

Let me give you some informations.

OS: Ubuntu 14 (with bind9 installed)


nameserver # opendns

The faulty lookup:

# host whois.verisign-grs.com
whois.verisign-grs.com has address
whois.verisign-grs.com has IPv6 address 2001:503:5419:1000::74
Host whois.verisign-grs.com not found: 2(SERVFAIL)

If i did not have the opendns entry in my resolv.conf, the error would either be a timeout (usually the first answer) or the SERVFAIL.

Could the local lookup tools be broken, or could it happen that my DNS lookups are blocked on some level?

host seems to query each of nameserver entries in resolv.conf in the order. That's maybe why you got an answer and then a SERVFAIL status when it request your local DNS server.

To avoid that behavior, specify the server you want to query:

server is an optional argument which is either the name or IP address of the name server that host should query instead of the server or servers listed in /etc/resolv.conf.

host whois.verisign-grs.com

Don't forget that resolv.conf is not a configuration file of BIND but of your machine to know to which server DNS request will be forwarded.

If you want to make your own BIND server answer even if it doesn't own the records, set some forwarders.

I tried and had the same issue with my BIND server:

dig @0 whois.verisign-grs.com gave me a SERVFAIL status.

dig @ whois.verisign-grs.com an answer.

Flush your DNS cache:

sudo rndc flush

Then request again:

dig @0 whois.verisign-grs.com +short
  • 2
Reply Report
      • 2
    • Do you have forwarders ? Comment "nameserver" in resolv.conf and set "" in your forwarders clause (named.conf.options) @SteffenNielsen .
      • 2
    • Thank you. This seemed to do the trick. The host command is no longer returning the annoying SERVFAIL error. Using forwarders, does this mean, that every request (that is not cached) will be sent to opendns (in this case)?
      • 2
    • @SteffenNielsen Every request that your BIND server can't answer will be forwarded, yes.
    • Thank you for your suggestion, but the SERVFAIL is still there after flushing. Do you have any other suggestions?

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags