How to get Gargoyle to resolve local IPs?

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

Post Reply
rseiler
Posts: 208
Joined: Sun Dec 15, 2013 12:31 am

How to get Gargoyle to resolve local IPs?

Post 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.

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: How to get Gargoyle to resolve local IPs?

Post 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
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

rseiler
Posts: 208
Joined: Sun Dec 15, 2013 12:31 am

Re: How to get Gargoyle to resolve local IPs?

Post 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.

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: How to get Gargoyle to resolve local IPs?

Post 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.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

rseiler
Posts: 208
Joined: Sun Dec 15, 2013 12:31 am

Re: How to get Gargoyle to resolve local IPs?

Post 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.

rseiler
Posts: 208
Joined: Sun Dec 15, 2013 12:31 am

Re: How to get Gargoyle to resolve local IPs?

Post 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).

Post Reply