Until a couple of months ago I was using router-distro IPFire which had a handy webpage where I could enter local IP-addresses and names (like devicehostname.mydomain.com) after which devicehostname.mydomain.com could be used on any client to access the associated local IP-address.
Now I'm using Debian as a router and I'm trying to accomplish the same thing. I thought it was as simple as editing /etc/hosts, but it seems it is not.
If I run nslookup from a Windows client, like for example with localhost, I get this expected result:
Code:
nslookup localhost 192.168.1.1
Server: UnKnown
Address: 192.168.1.1
Name: localhost
Addresses: ::1
127.0.0.1
the same with my routers hostname:
Code:
nslookup hellmouth 192.168.1.1
Server: UnKnown
Address: 192.168.1.1
Name: hellmouth
Address: 127.0.1.1
However, with devicename.mydomainname.com I keep getting "UnKnown can't find devicename.mydomainname.com: Query refused"
Pinging devicename.mydomainname.com on the Debian router itself works, so the change in the hostfile has been picked up, but apparently the client isn't getting access to that change in the hostfile. Not with nslookup, ping or tracert.
Since the router's hostname and localhost do work, I'm a bit
Bookmarks