[WARN] dns: QName invalid: <ip address of localhost>

1,145 views
Skip to first unread message

Raghu Kumar

unread,
Oct 8, 2015, 10:44:33 AM10/8/15
to Consul
Hello,

I am new to Consul and am setting it up on all instances inside an EC2 VPC. I have configured dnsmasq for DNS lookup. Right now, I have Consul running on 6 nodes; however I get this error on only one Node. All instances are of the same type and has the same AMI.

The warning is printed 4 times every 5 minutes:
    2015/10/08 14:05:01 [WARN] dns: QName invalid:  <ip address of localhost>.
    2015/10/08 14:15:01 [WARN] dns: QName invalid:  <ip address of localhost>.
    2015/10/08 14:15:01 [WARN] dns: QName invalid:  <ip address of localhost>.
    2015/10/08 14:15:01 [WARN] dns: QName invalid: <ip address of localhost>.
    2015/10/08 14:20:01 [WARN] dns: QName invalid:  <ip address of localhost>.
    2015/10/08 14:20:01 [WARN] dns: QName invalid: <ip address of localhost>.
    2015/10/08 14:20:01 [WARN] dns: QName invalid: <ip address of localhost>.
    2015/10/08 14:20:01 [WARN] dns: QName invalid:  <ip address of localhost>.

These are the steps followed to set up on each instance:

install consul:
-------------------

unzip and copy the binary to /usr/local/bin:
---------------------------------------------------------------
unzip -o 0.5.2_linux_amd64.zip -d /usr/local/bin

install dnsmasq:
-------------------------
yum install dnsmasq

# filename: /etc/dnsmasq.conf
# remove comment the below line which is the last line in conf
# conf-dir=/etc/dnsmasq.d

dns related config changes:
----------------------------------------
# filename: /etc/dnsmasq.d/10-consul
server=/consul/127.0.0.1#8600

# filename: /etc/resolv.conf
search consul ec2.internal
nameserver 127.0.0.1
nameserver <VPC DNS Server>

# filename: /etc/consul.d/webui.json

{
  "service": {
    "name": "webui",
    "tags": ["stg"],
    "port": 8001,
    "checks": [
      {
        "interval": "30s"
      }
    ]
  }
}
-----------
start the services:
--------------------------
service dnsmasq start

consul agent -config-dir /etc/consul.d -data-dir /tmp/consul &

# run command: consul join node
consul join <ip address>

------------

Functionally, I don't find any issues, however this warning keeps appearing every 5 minutes which is extremely annoying.

Regards,
Raghu

Armon Dadgar

unread,
Oct 8, 2015, 2:26:40 PM10/8/15
to consu...@googlegroups.com, Raghu Kumar
Hey Raghu,

That warning just indicates a DNS request has been made to Consul for a name that is invalid,
and that it does not know how to process it. It’s not an error in Consul, there is a client making an
invalid request.

In this case a DNS query is being made for <IP address of localhost>.

Best Regards,
Armon Dadgar
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/consul/issues
IRC: #consul on Freenode
---
You received this message because you are subscribed to the Google Groups "Consul" group.
To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/56fd08d1-97e7-4f4e-817a-f7146cf0d4ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raghu Kumar

unread,
Oct 9, 2015, 5:38:48 AM10/9/15
to Armon Dadgar, consu...@googlegroups.com
Thank you, Armon for the reply. How can I stop this warning. How do I find out which client it is. Could this be any other client other than Consul?

I have a client agent running on this machine. Its not the IP Address but the Node name of the instance which is mentioned.

2015/10/09 09:10:01 [WARN] dns: QName invalid: ip-10-50-21-232.
2015/10/09 09:10:01 [WARN] dns: QName invalid: ip-10-50-21-232.

If its a client trying to do a DNS resolve of the Node/Host shouldn't it be on the same machine; as the Consul DNS port is tied to localhost?

Regards,
Raghu

Armon Dadgar

unread,
Oct 9, 2015, 5:25:18 PM10/9/15
to Raghu Kumar, consu...@googlegroups.com
Hey Raghu,

You can use tcpdump to see who is making the request to Consul. I believe the
next version includes the IP of the client making the request as well.

However, the node name I think is causing a warning since it lacks a TLD
making it an invalid query name.

Hope that helps!
Reply all
Reply to author
Forward
0 new messages