Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


View this topic in a long page with up to 500 replies per page Create new topic
1 | 2 
hio77
'That VDSL Cat'
13036 posts

Uber Geek
+1 received by user: 3896

ID Verified
Trusted
Lizard Networks
Subscriber

  #1715140 3-Feb-2017 20:26
Send private message

For my home network, i have it all linked to one of my domains; baird.io 

 

 

 

Home Lan : all devices are resolved as <computername>.home.baird.io

 

HAB Lan : all devices are resolved as <computername>.hab.baird.io

 

Guest Lan : all devices are resolved as <computername>.guest.home.baird.io

 

 

 

by default pfsense handles this reasonably well, i have since started having dhcp allocate the dns names on the DNS server as it can sometimes be inconsistant in resolving otherwise.

 

Different subnets are handed out their own search domains for all of this

 

 

 

Makes for very clean reasoltion within the network:

 

C:\Users\halo7>ping autobot

 

Pinging autobot.home.baird.io [10.3.57.125] with 32 bytes of data:
Reply from 10.3.57.125: bytes=32 time<1ms TTL=64
Reply from 10.3.57.125: bytes=32 time<1ms TTL=64
Reply from 10.3.57.125: bytes=32 time<1ms TTL=64
Reply from 10.3.57.125: bytes=32 time<1ms TTL=64

 

ontop of this i do own a ssl cert for my pfsense box, simply because why not... 

 

 

 

 

 

I do have a few manual entries into the dns to make it look much cleaner such as VPN hop points.

 

The one bit that i am yet to perfect is effective naming without affecting anything on the nat side of things for balancing.





#include <std_disclaimer>

 

Any comments made are personal opinion and do not reflect directly on the position my current or past employers may have. 




michaelmurfy
meow
13579 posts

Uber Geek
+1 received by user: 10910

Moderator
ID Verified
Trusted
Lifetime subscriber

  #1715188 3-Feb-2017 22:30
Send private message

davidcole:
So the USG doesn't seem to be like most of the other routers I've used with regards dnsmasq etc.  If I want static Ips (and resolvable names) I need to make this config.gateway.json file?
What ties the MAC address to an IP, since the option they talk about is hostname,ip?

 

With the USG yes only because the controller will just overwrite its configuration. The USG will read anything in /etc/dnsmasq.d/ so you could always create "home.conf" for example under that folder and reload dnsmasq on the router but you'll want to script it (store scripts under /config/scripts/) because it'll be wiped with each firmware update. Otherwise just run a separate DNS server and set DNS forwarding on the USG to point to it. On my network like I said I've got a Pi doing it with the Edgerouter doing DNS forwarding - each of my hosts are configured with the primary DNS of 192.168.2.4 and secondary of 192.168.2.1 so if the Pi went down for any reason I could just ask my router to be the DNS server.

 

A little more geeky than doing it just via the router (like you asked!).





Michael Murphy | https://murfy.nz
Referral Links: Quic Broadband (use R122101E7CV7Q for free setup)

Are you happy with what you get from Geekzone? Please consider supporting us by subscribing.
Opinions are my own and not the views of my employer.


davidcole

6099 posts

Uber Geek
+1 received by user: 1465

Trusted

  #1715639 5-Feb-2017 09:32
Send private message

michaelmurfy:

davidcole:
So the USG doesn't seem to be like most of the other routers I've used with regards dnsmasq etc.  If I want static Ips (and resolvable names) I need to make this config.gateway.json file?
What ties the MAC address to an IP, since the option they talk about is hostname,ip?


With the USG yes only because the controller will just overwrite its configuration. The USG will read anything in /etc/dnsmasq.d/ so you could always create "home.conf" for example under that folder and reload dnsmasq on the router but you'll want to script it (store scripts under /config/scripts/) because it'll be wiped with each firmware update. Otherwise just run a separate DNS server and set DNS forwarding on the USG to point to it. On my network like I said I've got a Pi doing it with the Edgerouter doing DNS forwarding - each of my hosts are configured with the primary DNS of 192.168.2.4 and secondary of 192.168.2.1 so if the Pi went down for any reason I could just ask my router to be the DNS server.


A little more geeky than doing it just via the router (like you asked!).



So I'd rather not do the latter, as that would require another device running.

So I'm happy with the concept of the config.gareway.json. Now in terms of adapting a USG into an existing network I see they have a post on this for getting the USG to the correct lan ip if not 192.168.1.0, before adopting.

But what could I do for making it not screw up my local lan config while it get the forma of the config file for setting all my machines to their current ip ranges.

Could I run and isolated controller, or use the iOS app, ssh config? I have about 15 devices I want to set up with names, and get to the pick up via ip their current up adddreses.




Previously known as psycik

Home Assistant: Gigabyte AMD A8 Brix, Home Assistant with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Shelly Humidity and Temperature sensors
Media:Chromecast v2, ATV4 4k, ATV4, HDHomeRun Dual
Server
Host Plex Server 3x3TB, 4x4TB using MergerFS, Samsung 850 evo 512 GB SSD, Proxmox Server with 1xW10, 2xUbuntu 22.04 LTS, Backblaze Backups, usenetprime.com fastmail.com Sharesies Trakt.TV Sharesight 


1 | 2 
View this topic in a long page with up to 500 replies per page Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.