Gargoyle to resolve two domains.

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
psycik
Posts: 74
Joined: Mon Mar 21, 2011 3:27 pm

Gargoyle to resolve two domains.

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

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

Re: Gargoyle to resolve two domains.

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

psycik
Posts: 74
Joined: Mon Mar 21, 2011 3:27 pm

Re: Gargoyle to resolve two domains.

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

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

Re: Gargoyle to resolve two domains.

Post by Lantis »

I think you manually need to change local as well.
I would then reboot and disconnect reconnect devices to flush IPs etc
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

psycik
Posts: 74
Joined: Mon Mar 21, 2011 3:27 pm

Re: Gargoyle to resolve two domains.

Post 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

Post Reply