I have a "sandbox" web server setup for my developers to work on. Each one has their own IP, with all the "production" hostnames configured, and a DNSmasq configuration to answer for those production names but to return their own IP, because its not reasonable to edit the "hosts" file on a TV or other appliance type device.
I have 8 dnsmasqd's running on the server with configuration files that look like:
bind-interfaces
except-interface=lo
listen-address = 10.0.0.201
address=/www.mydomain.com/10.0.0.201
address=/ws.mydomain.com/10.0.0.201
address=/www.another.com/10.0.0.201
address=/ws.another.com/10.0.0.201
.. with each configuration file incremented (10.0.0.202, 10.0.0.203, etc)
While that part is working perfectly for the TV's it is driving my a little crazy that I can't test it from the server itself.
[root@sf-devstore-01 sandboxes]# host www.mydomain.com 10.0.0.201
;; connection timed out; trying next origin
;; connection timed out; trying next origin
;; connection timed out; no servers could be reached
It works just fine from other hosts on the same network...
[root@sf-mon-01 ~]# host www.mydomain.com 10.0.0.201
Using domain server:
Name: 10.0.0.201
Address: 10.0.0.201#53
Aliases:
www.mydomain.com has address 10.0.0.201
This system is the only system on the network with the 10.0.0.20x IP addresses (I verified the MAC address). It is listening and the interfaces are "UP" (etc etc).. it works on other machines, just not the local system.
Any suggestions?
Thanks in advance,
Tommy