Page 1 of 1

How to get Gargoyle to resolve local IPs?

Posted: Sat Sep 10, 2016 2:42 am
by rseiler
Using Gargoyle in a Windows Server environment that prefers to do DHCP itself, I have it disabled in Gargoyle. When you do that, however, places like B/W Distrib and Connected Hosts show only IPs.

I thought I could solve this by tweaking /etc/resolv.conf and dnsmasq.conf to be aware of our Windows Server DNS. And sure enough, when doing that, I could then use WinSCP to do successful nslookups of anything local (whereas before it knew only external hosts) by hostname or IP. Like:
nslookup 192.168.1.116
Server: 127.0.0.1
Address 1: 127.0.0.1 localhost

Name: 192.168.1.116
Address 1: 192.168.1.116 win7pcname.ourwindomain.local
But B/W Distrib etc still stubbornly show IPs. Surely I'm close. Does anyone know what needs adjustment? I'm suspecting the 'config dnsmasq' section of /etc/config/dhcp, but really, it could be anything.

Re: How to get Gargoyle to resolve local IPs?

Posted: Sat Sep 10, 2016 3:27 am
by Lantis
One way to do this is to populate /etc/hosts
With tab delimited entries. E.g
192.168.1.111 LantisPC
192.168.1.112 LantisPhone

Can your DNS server advertise a list somehow that you can populate into here?


There may be better ways of doing this

Re: How to get Gargoyle to resolve local IPs?

Posted: Sat Sep 10, 2016 10:37 am
by rseiler
It would be a dynamic list though, prone to change at any time, so hosts would quickly become obsolete.

Maybe the key is finding what those UI sections and others, like WoL, normally do to determine the hostname. Before this I had assumed that a lookup was done, but there's something more to it, since if it was just that it should be working now.

Re: How to get Gargoyle to resolve local IPs?

Posted: Sat Sep 10, 2016 6:22 pm
by Lantis
They look at /etc/hosts, /etc/ethers, and in WOL case, a local ARP table as well.

You can use CRON to check for updates.

Re: How to get Gargoyle to resolve local IPs?

Posted: Sat Sep 10, 2016 6:37 pm
by rseiler
"Current DHCP Leases" uses hosts, but I haven't id'd yet what, for example, "Hosts With Active Connections" and "Bandwidth Distribution" use. They have things in them that don't exist in hosts or ethers.

Re: How to get Gargoyle to resolve local IPs?

Posted: Sun Sep 11, 2016 5:07 pm
by rseiler
While that last part is true, at least on my home Gargoyle, it's also true that if hosts is populated that "Hosts With Active Connections" and "Bandwidth Distribution" fill out accordingly.

So, while I still think that there must be a way to get Gargoyle to automatically know about these names via what I was talking about originally (if anyone ever figures that out, let me know), I gave up on it and just manually set hosts, along with setting Windows DHCP's in "reservation" mode so the IPs don't change (I figured that was much, much easier than trying to setup some kind of scheduled export/import operation from Windows DHCP to Gargoyle).