Page 1 of 1

Gargoyle to resolve two domains.

Posted: Wed Feb 01, 2017 4:06 pm
by psycik
I'm looking at getting some certificates for some local services I run. So machine.mydomain.com for an http service internally.

Currently my gargoyle is set up to add .lan to all the machines, so machine.lan responds. But obviously https://machine.lan gets a certificate error with my new machine.mydomain.com certificate.

I guess I could change(?) my domain definition in gargoyle to set the domain to mydomain.com instead of .lan?

Or is there a way I could tell gargoyle to accept either domain, and I'm not sure I'm ready to completely replace my local domain name.

Re: Gargoyle to resolve two domains.

Posted: Thu Feb 02, 2017 7:49 am
by Lantis
A bit of research looks like you can use two, but it seems awkward and no one really explained it well.

I'd be more inclined to make the one domain as mydomain.com as you stated

Re: Gargoyle to resolve two domains.

Posted: Thu Feb 02, 2017 2:14 pm
by psycik
Yeah I figured that was easier.

So do you know the process? (still on 1.6.2) I went to the system\identification tab and changed lan to mydomain.com and hit save.

A quick look in the etc/config/dhcpd.conf I saw that
domain=mydomain.com
but local was still set to local=\lan\

I didn't force a restart of the router, (but did do a dnsmasq reload and restart - didn't try dhcpd), but on the back of that just did a ip renew on a windows machine, and it didn't seem to pick up a new domain.

Should I just try and reboot? or is there a setting I'm missing?

Re: Gargoyle to resolve two domains.

Posted: Thu Feb 02, 2017 3:35 pm
by Lantis
I think you manually need to change local as well.
I would then reboot and disconnect reconnect devices to flush IPs etc

Re: Gargoyle to resolve two domains.

Posted: Thu Feb 02, 2017 3:54 pm
by psycik
Ok. I might have a play. Technically I've got some newer hardware, that I can try it out of before doing my entire network.

But I'm also considering going for a ubiquiti USG as my primary router and may take that opportunity to do it then