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
# 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